powered by
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.
TRUE
FALSE
y
x %has% y x %hasonly% y x %hasall% ys x %hasany% ys
Logical vector
mr object
mr
character vector specifying a level
character vector specifying one or more levels
data(ethnicity) ethnicity ethnicity %has% "Maori" ethnicity %hasonly% "Maori" data(nzbirds) as.mr(nzbirds) as.mr(nzbirds)
Run the code above in your browser using DataLab