default col.names from data.frame not the same as as.data.frame

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

default col.names from data.frame not the same as as.data.frame

Spencer Graves-3
Hello, All:


       Consider:


 > data.frame(matrix(1:2, 1))
   X1 X2
1  1  2
 > as.data.frame(matrix(1:2, 1))
   V1 V2
1  1  2


       I ask, because I got different default names running the same
numbers through BMA:::bic.glm.matrix and BMA:::bic.glm.data.frame, so I
thought I'd ask this group what names you all prefer for examples like
these.


       Thanks,
       Spencer Graves

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel