Re: [Rd] as.data.frame peculiarities

2009-03-31 Thread Wacek Kusnierczyk
Stavros Macrakis wrote: > The documentation of as.data.frame is not explicit about how it generates > column names for the simple vector case, but it seems to use the character > form of the quoted argument, e.g. > > names(as.data.frame(1:3)) > [1] "1:3" > > But there is a strange case: > > names(a

[Rd] as.data.frame peculiarities

2009-03-31 Thread Stavros Macrakis
The documentation of as.data.frame is not explicit about how it generates column names for the simple vector case, but it seems to use the character form of the quoted argument, e.g. names(as.data.frame(1:3)) [1] "1:3" But there is a strange case: names(as.data.frame(c("a"))) [1] "if (stringsAsF