cash-set-Item-method: Set values to parameters or components of 'Item-class' object

Description Usage Arguments Value Author(s) Examples

Description

Set values to parameters or components of Item-class object

Usage

1
2
## S4 replacement method for signature 'Item'
x$name <- value

Arguments

x

An Item-class object.

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
itm <- new("3PL", item_id = 'item23', content = 'Geometry',
            misc = list(enemies = c("item1", "item2")),
            b = 2, c = .12, a = 1.2, D = 1)
itm$a <- 2
itm$D <- 1.7
itm$item_id <- "Item-111"
itm$content <- 'Algebra'
itm$se_a <- 2.2
# Set all misc fields like this
itm$misc <- list(enemies = c("item5"), strands = c("A4", "C2"))

# Add a misc field
itm$key <- "C"

# Remove a misc field
itm$enemies <- NULL

irt documentation built on Nov. 9, 2021, 9:07 a.m.