I don't know exactly what you mean, but perhaps this will get you started:
This:
subset(Data, X4==1 & X5==1, select=c(X1, X2, X3))
will extract the continuous variables in the cross-tabulation cell for
which X4 and X5 are both equal to one. Similar commands will extract the
other cells.
Of course
ent of Anthropology
Texas A&M University
College Station, TX 77840-4352
-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of PIKAL Petr
Sent: Friday, June 17, 2016 9:24 AM
To: Gafar Matanmi Oyeyemi; r-help@r-project.org
Subject: Re: [R] Obt
Hi
did you try table or xtabs?
Cheers
Petr
> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Gafar
> Matanmi Oyeyemi
> Sent: Friday, June 17, 2016 2:25 PM
> To: r-help@r-project.org
> Subject: [R] Obtaining and extracting cel
Hello everyone,
I'm writing a function in R but was stalked.
I have a data set that contains mixture of categorical and continuous
variables. I want to use the categorical variables to cross-tabulate the
data and extract the observations in the resulting cells that contain only
continuous variables
4 matches
Mail list logo