Skip to content

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

1 message · Spencer Graves

#
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