inst/snippets/subset.R

head(ICUAdmissions, 2)
tally( ~ sex, data = ICUAdmissions) 
ICUMales <- subset(ICUAdmissions, sex == "Male") # notice the double =
tally( ~ sex, data = ICUMales)

Try the Lock5withR package in your browser

Any scripts or data that you put into this service are public.

Lock5withR documentation built on May 2, 2019, 3:43 p.m.