<Rory.WINSTON <at> rbs.com> writes: > > Sorry, I spoke too soon... > > interaction() only works for sequences of equal length. Anyone know a method that works with > unequal-length vectors? >
Something like c(outer(vec1,vec2,paste,sep="")) ? (totally untested) Ben Bolker ______________________________________________ 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.