[R] Get rid of space padding

Gene Cutler gcutler at amgen.com
Thu Dec 23 02:19:53 CET 2004


On Dec 22, 2004, at 5:00 PM, (Ted Harding) wrote:
>
> so, for me, the tabs are coming through as such.
>
> (R-1.8.0, RH9 Linux)
>
> What gives you the information that "\t" has expanded to spaces?
> Often, writing a file out to a display, or importing it into an
> editor (though you should be able to turn this off) expands tabs
>


I am getting tabs, but the values are being padded out to the tabs.
Here is one sample line with spaces replaced by '.' and tabs replaced
by '^'.

5...................^45597241............^16734145............^2.7128169 
8016131e-06^0.622804755173039...^0.91743119266055....^GB-4858-1- 
A.........^GB-4873-1-A.........

This is with R 2.0.1 both on Mandrake linux and Mac OS X.

Also, I know it's not an issue of a text editor altering the data as  
these file get
read in by perl scripts and R as well as my text editor of choice.




More information about the R-help mailing list