Hi, On 07/19/2010 11:56 AM, Iasonas Lamprianou wrote:
(a)in SPSS PASW there is a 'split file' command is repeats the same analysis for all sub-groups. Is there a split file equivalent in R?
There is a by command in base R, but for this type of problems Hadley Wickham has written a nice package 'plyr' available on CRAN. See also the package home page: http://had.co.nz/plyr/ HTH, Tobias ______________________________________________ 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.