Import data:
mydata <- read.table("filename.txt")
give following command for column name
colnames(mydata) <- c("V1","V2","V3",................)


Gyanendra Pokharel
University of Guelph
Guelph, ON


On Mon, Aug 26, 2013 at 5:42 PM, Docbanks84 <mban...@partners.org> wrote:

> Hi ,
>
> I just imported a large data set from notepad. I want to label the columns
> in R.
>
> I used 'import Dataset' to bring in my data set
> Now, I would like to label V1,V2,V3 etc??
>
> Thanks
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Naming-columns-tp4674595.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help@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.
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to