Displaying 1 result from an estimated 1 matches for "manix".
Did you mean:
panix
2002 Dec 11
3
Excluding levels in table and xtabs
I'm trying to form contingincy tables among a set of character variables
which were read from a .csv file and
have missing represented as "". I want to exclude the missing levels
from the table.
> levels(CPIC)
[1] "" "N" "Y"
> levels(Manix)
[1] "" "N" "Y"
> xtabs(~CPIC + Manix, exclude=c("",NA))
Manix
CPIC N Y
272 4 15
N 154 2812 1472
Y 158 466 4870
> table(CPIC, Manix, exclude=c("",NA))
Manix
CPIC N Y
272 4 15
N 154 2...