Learn R Programming

irt (version 0.2.9)

$<-,Testlet-method: Set values to parameters or components of Testlet-class object

Description

Set values to parameters or components of Testlet-class object

Usage

# S4 method for Testlet
$(x, name) <- value

Value

This operation will not return anything.

Arguments

x

An Testlet-class object.

name

Name of the parameter or component.

value

The new value that will be assigned.

Author

Emre Gonulates

Examples

Run this code
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

Run the code above in your browser using DataLab