Skip to content
Prev 31932 / 63424 Next

question on "row.names" attribute of dataframe when called from a compiled package

On Mar 17, 2009, at 16:45 , Whit Armstrong wrote:

            
Note the difference between class("foo") and attr("foo", "class") -  
some classes are implicit.
Because the internal representation of automatic row names is c(NA, - 
dim(d)[1]) where d is the data frame. This is not exposed at the R  
level, though, since it's an implementation optimization.
Yes - it saves a lot of space when using large datasets with automatic  
names.

Cheers,
Simon