Tim Bergsma wrote: > Is there a conventional way to test for nested factors? I.e., if 'a' > and 'b' are lists of same-length factors, does each level specified by > 'a' correspond to exactly one level specified by 'b'?
all( tapply(b, a, function(x) length(unique(x))==1 )) J. R. M. Hosking ______________________________________________ [email protected] 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.
