[R] Cartesian Product Of Character Vectors

Ben Bolker bolker at ufl.edu
Fri Dec 5 23:31:46 CET 2008

 <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

More information about the R-help mailing list