Learn R Programming

irt (version 0.2.9)

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

Description

Set the elements of an Response_set objects.

Usage

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

Value

An updated Response_set-class object.

Arguments

x

Response-class object.

i

indices specifying elements to extract or replace.

j

This will not be used in Response_set-class objects.

value

An Response-class object.

Author

Emre Gonulates

Examples

Run this code

resp_set <- sim_resp(ip = generate_ip(n = 12), theta = rnorm(10),
                     output = "response_set")
r1 <- response(score = c(0, 1), examinee_id = "Stu-22",
               item_id = c("Item_1", "Item_2"))
resp_set[[2]] <- r1

Run the code above in your browser using DataLab