[R] data frame's column names not the same as in CSV

Gabor Grothendieck ggrothendieck at gmail.com
Sat Sep 26 11:31:11 CEST 2009


See the check.names argument in the help file for read.table.

On Sat, Sep 26, 2009 at 1:58 AM, Derek Foo <kc.derek at gmail.com> wrote:
> Hello,
>
> I am trying to read in a csv file with column such as
> "\\LS01\Processor(_Total)\% Processor Time" with the command
> read.csv("file"). However, the column name in the resulted data frame is
> changed to "X..LS01.Processor._Total....Processor.Time".
>
> Strangely, when I experimented with just reading the csv with the "head"
> flag set to false, the text was read correctly as the same to the raw file.
> I am wondering if anyone has encountered a similar problem. If so, I would
> really appreciate if you can share your insight.
>
>
> Best Regards,
> Derek
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> 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