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

Stefan Grosse singularitaet at gmx.net
Sat Sep 26 10:53:35 CEST 2009


On Sat, 26 Sep 2009 01:58:38 -0400 Derek Foo <kc.derek at gmail.com> wrote:

DF> I am trying to read in a csv file with column such as
DF> "\\LS01\Processor(_Total)\% Processor Time" with the command
DF> read.csv("file"). However, the column name in the resulted data
DF> frame is changed to "X..LS01.Processor._Total....Processor.Time".

Yous should maybe specify a unique separator for the columns which is
not existant in your colum name strings. Otherwise things might get
messed up.

It is not clear what the separator is in your example since you did not
show the numbers. Probably it is "\" so you have to specify it as such.
?read.csv

Stefan




More information about the R-help mailing list