[R] 2 plots sharing axis / combining factors

Thomas Lumley tlumley at u.washington.edu
Tue Oct 1 15:54:51 CEST 2002


On Mon, 30 Sep 2002, juli g. pausas wrote:
> - How could I convert 2 factor variables in a single factor variable
> which is the combination of the other 2.
> Example:
>     lith: a factor 2 levels "ca", "ma"
>     sp: a factor with 2 levels, "ph", "qi"
> and I'd like to obtain:
>     splith: a factor with 4 levels: phma, phca, qima, qica
>

strata(lith,sp) or interaction(lith,sp)

	-thomas


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list