Is the following a bug? ##(R version 3.0.2 (2013-09-25) ## Platform: i386-w64-mingw32/i386 (32-bit))
d <- data.frame(a=rep(letters[1:3],4:6)) rle(d$a) ##Error in rle(d$a) : 'x' must be an atomic vector is.atomic(d$a) ##[1] TRUE rle(c(d$a)) ## Run Length Encoding ## lengths: int [1:3] 4 5 6 ## values : int [1:3] 1 2 3 Cheers, Bert Bert Gunter Genentech Nonclinical Biostatistics (650) 467-7374 "Data is not information. Information is not knowledge. And knowledge is certainly not wisdom." H. Gilbert Welch ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.