mrequal {rimu} | R Documentation |
Check if a level or levels is present
Description
Returns vector of TRUE
or FALSE
according to whether y
is onle of the levels present for that row or is the only level present for that row.
Usage
x %has% y
x %hasonly% y
x %hasall% ys
x %hasany% ys
Arguments
x |
|
y |
character vector specifying a level |
ys |
character vector specifying one or more levels |
Value
Logical vector
Examples
data(ethnicity)
ethnicity
ethnicity %has% "Maori"
ethnicity %hasonly% "Maori"
data(nzbirds)
as.mr(nzbirds)
as.mr(nzbirds)
[Package rimu version 0.6 Index]