Learn R Programming

irt (version 0.2.9)

[[<-,Itempool,numeric,missing-method: Set the elements of an Itempool objects.

Description

Set the elements of an Itempool objects.

Usage

# S4 method for Itempool,numeric,missing
[[(x, i, j) <- value

Value

An updated Itempool-class object.

Arguments

x

Itempool-class object.

i

indices specifying elements to extract or replace.

j

This will not be used in Itempool-class objects.

value

An Item-class or Testlet-class object.

Author

Emre Gonulates

Examples

Run this code
item1 <- item(a = 1.12, b = -2.1, c = 0.28)
item2 <- item(a = 2, b = 3.2, c = 0.21)
ip <- c(item1, item2)
item3 <- item(a = 1, b = -.2, c = 0.4)
ip[[2]] <- item3

Run the code above in your browser using DataLab