Removing “NUL” characters (within R)
I've got a strange text file with a bunch of NUL characters in it (actually about 10 such files), and I'd like to programmatically replace them from within R. Here is a link to one of the files. With the aid of this question I've finally figured out a better-than- ad-hoc way of going into each file and find-and-replacing the nuisance characters. It turns out that each pair of them should correspond to one space ( [NUL][NUL] -> ) to maintain the intended line width of the file (which is crucial for reading these as fixed-width further down the road). However, for robustness' sake, I prefer a