[R] how to retain dimnames while exporting from excel into r

arun smartpink111 at yahoo.com
Thu Sep 12 14:23:46 CEST 2013


Hi,
Try with:

read.csv(file="sales.csv",header=TRUE,check.names=FALSE)
A.K.




----- Original Message -----
From: Charles Thuo <tcmuigai at gmail.com>
To: r-help at r-project.org
Cc: 
Sent: Thursday, September 12, 2013 3:15 AM
Subject: [R] how to retain dimnames while exporting from excel into r

v<- read.csv(file="sales.csv",header=TRUE)
v


i get an output whose column names are V1,V2, and so on but i would like to
retain the original column names such as january through to december.

Charles.

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