powered by
Constructs a multiple response object (MRO) subset by another explanatory variable.
byMRO(mro.obj, formula, FUN, ...)
an object with classes of by and bymrocalc
by
bymrocalc
an mro object (created by iNZightMR)
iNZightMR
variable for subsetting, as a formula (e.g., ~x)
~x
the function to apply to subsets
additional arguments passed to FUN
FUN
mroPara
mr <- iNZightMR(online ~ onlinegame + onlinevideo + onlinemusic, data = census.at.school.5000 ) byMRO(mr, ~gender, mroPara) byMRO(mr, ~ gender + handed, mroPara)
Run the code above in your browser using DataLab