[Rd] names drop for columns from data.frame (PR#14002)

2009-10-13 Thread veraf
Full_Name: Francisco Vera Version: 2.9.2 OS: Windows Submission from: (NULL) (74.248.242.164) Run the following commands: a<-data.frame(x=1:2,y=3:4,row.names=c("i","j")) names(a$x) names(a[,1]) For names(a$x) I get NULL instead of c("i","j"). Same thing happens with names(a[,1]). It works fine

Re: [Rd] names drop for columns from data.frame (PR#14002)

2009-10-24 Thread Peter Ehlers
Have you tried names(a[,1,drop=FALSE])? Then have a look at help("["). -Peter ve...@clemson.edu wrote: Full_Name: Francisco Vera Version: 2.9.2 OS: Windows Submission from: (NULL) (74.248.242.164) Run the following commands: a<-data.frame(x=1:2,y=3:4,row.names=c("i","j")) names(a$x) names(a[