Re: [R] Naming rows oe columns in a data frame.

2008-04-07 Thread Johannes Hüsing
?colnames __ 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.

Re: [R] Naming rows oe columns in a data frame.

2008-04-07 Thread jim holtman
colnames(xx) <- c('men', 'womem', 'total') On 4/7/08, filip rendel <[EMAIL PROTECTED]> wrote: > > Hello there! I have a really basic question. I have extracted some data from > a big database. I have ordered the data in to different agegroups in the > rows. Now I want to to have labels of the co

[R] Naming rows oe columns in a data frame.

2008-04-07 Thread filip rendel
Hello there! I have a really basic question. I have extracted some data from a big database. I have ordered the data in to different agegroups in the rows. Now I want to to have labels of the columns which is going to be divided into men , women and totals. How do I give names to a column? My d