I want to load a text file that looks like the following into R, remove all spaces, then rewrite the file.
1 061
061 1
0 081
080 1
0 061
060 1
1 051
051 1
0 101
100 1
The way I'd go about this is with readlines(), removing the spaces in each row, then rewriting.
Is that the best way?
This question is different from just asking how to remove spaces from a string as it involves data framed as rows in a predictable pattern.