Displaying 1 result from an estimated 1 matches for "guettner".
Did you mean:
buettner
2000 May 31
3
read.table and strip.white
Hi!
I want to read data (using read.table(.)) from a file like:
"col1", "col2", "col3"
1, 1, 1
2, 2, 2
But the white spaces are interpreted:
x <- read.table("filename", header=TRUE, sep=",") ## or read.csv(...)
colnames(x)
[1] "col1" " col2" " col3"
^ ^
So I would like to pass