search for: barbay

Displaying 1 result from an estimated 1 matches for "barbay".

Did you mean: barba
2011 Nov 04
2
Efficiency of factor objects
R factors are the natural way to represent factors -- and should be efficient since they use small integers. But in fact, for many (but not all) operations, R factors are considerably slower than integers, or even character strings. This appears to be because whenever a factor vector is subsetted, the entire levels vector is copied. For example: > i1 <- sample(1e4,1e6,replace=T) > c1