Last chance! 50% off unlimited learning
Sale ends in
light.edsurvey.data.frame
.Return a new light.edsurvey.data.frame
which, when passed to getData
, returns only a subset of the data.
# S3 method for light.edsurvey.data.frame
[(x, i, ...)
a light.edsurvey.data.frame
.
not used. Included only for compatability.
not used. Included only for compatability.
An object of the same class as x
, with the same attributes, that has been subsetted.
# NOT RUN {
# read in the example data (generated, not real student data)
sdf <- readNAEP(system.file("extdata/data", "M36NT2PM.dat", package = "NAEPprimer"))
gddat <- getData(sdf, c("composite", "dsex"), addAttributes = TRUE)
table(gddat[gddat$dsex=="Male","dsex"])
# }
Run the code above in your browser using DataLab