[R] column name prefix 'x' after data import via read.delim

Gerrit Eichner Gerrit.Eichner at math.uni-giessen.de
Fri Nov 23 12:20:10 CET 2012


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.
>
>




More information about the R-help mailing list