Learn R Programming

EdSurvey (version 1.0.6)

getPlausibleValue: Get plausible values from a given subject or subscale.

Description

Get the set of variables on an edsurvey.data.frame or light.edsurvey.data.frame associated with the given subject or subscale.

Usage

getPlausibleValue(var, data)

Arguments

var

a character vector naming the subject scale or subscale.

data

an edsurvey.data.frame or light.edsurvey.data.frame.

Value

A character vector of the set of variable names for the plausible values.

Details

This function will return a set of variable names for plausible values that hasPlausibleValue returns as true.

See Also

showPlausibleValues

Examples

Run this code
# NOT RUN {
# read in the example data (generated, not real student data)
sdf <- readNAEP(system.file("extdata/data", "M36NT2PM.dat", package = "NAEPprimer"))

getPlausibleValue(var="composite", data=sdf)
# }

Run the code above in your browser using DataLab