[R] additional "X" characters in headers

Ben Bolker bbolker at gmail.com
Sun Mar 4 22:57:10 CET 2012


Mateusz Kędzior <matandked <at> gmail.com> writes:

> I want to prepare boxplot graphs from CSV files which containt in first row
> years.
> I've tried to use both read.table and read.CSV functions, but each of them
> add "X" to year in header,
> so I can see: X2012 instead of simply 2012.
> After calling boxplot those strange signs weren't removed.
> Is there any option to "properly" import such file?
> I've tried to add brackets, but it doesn't work.
> 

  Use 'check.names=FALSE' in your calls to read.table and read.csv.  (Search
?read.table for 'check.names' to see what it means.)



More information about the R-help mailing list