e-letter
2012-Nov-23 10:43 UTC
[R] column name prefix 'x' after data import via read.delim
Readers, The function 'read.delim' was used to import data into R: columnnamea columnnameb columnnamec 1 2 3 2 3 4 3 4 5 After import, the column names were: X.columnnamea columnnameb columnnamec Why did this occur? -- r2151
Gerrit Eichner
2012-Nov-23 11:20 UTC
[R] column name prefix 'x' after data import via read.delim
Hello, "e-letter", check ?read.delim and look for the argument check.names and from there you'll should end up reading ?make.names Hth -- Gerrit On Fri, 23 Nov 2012, e-letter wrote:> Readers, > > The function 'read.delim' was used to import data into R: > > columnnamea columnnameb columnnamec > 1 2 3 > 2 3 4 > 3 4 5 > > After import, the column names were: > > X.columnnamea columnnameb columnnamec > > Why did this occur? > > -- > r2151 > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > >