Re: [R] naming columns of data frame

2007-09-15 Thread Henrique Dallazuanna
Try this: df <- data.frame('1.test'=rnorm(100), '2.test'=runif(100), check.names=F) -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 15/09/2007, kevinchang <[EMAIL PROTECTED]> wrote: > > > Hey, > > I am trying to make a data frame and the name of a column is compos

Re: [R] naming columns of data frame

2007-09-15 Thread Katharine Mullen
when I try what you describe there is no problem -maybe send a reproducible example. > x<-data.frame(matrix(2,2,2)) > colnames(x) <- c("1.xx", "2.xx") > x 1.xx 2.xx 122 222 On Sat, 15 Sep 2007, kevinchang wrote: > > Hey, > > I am trying to make a data frame and the name of a c

[R] naming columns of data frame

2007-09-15 Thread kevinchang
Hey, I am trying to make a data frame and the name of a column is composed of a number, a dot, and a word, such as "1.whatever". But I always get this error message:"syntax error, unexpected SYMBOL, expecting ',' in:" while printing data frame out . When I rename the column with purely letter, ev