$<-,Testlet-method {irt} | R Documentation |
Set values to parameters or components of Testlet-class
object
Description
Set values to parameters or components of Testlet-class
object
Usage
## S4 replacement method for signature 'Testlet'
x$name <- value
Arguments
x |
An |
name |
Name of the parameter or component. |
value |
The new value that will be assigned. |
Value
This operation will not return anything.
Author(s)
Emre Gonulates
Examples
tlt <- generate_testlet()
tlt$testlet_id <- "New-Testlet-ID-111"
tlt$content <- "Algebra"
# Set all misc fields like this
tlt$misc <- list(passage_text = "This is a reading passage.",
passage_lexile = 450)
tlt$passage_text
# Add a misc field
tlt$passage_language <- "En-US"
# Remove a misc field
tlt$passage_language <- NULL
[Package irt version 0.2.9 Index]