Learn R Programming

irt (version 0.2.9)

c,Item-method: Concatenate Item, Itempool or Testlet objects and return an Itempool object.

Description

If the elements do not have ID fields, function will assign default names.

This function concatenates Response and/or Response_set objects and returns a Response_set-class object.

If the elements do not have examinee ID fields, function will assign default ids.

Usage

# S4 method for Item
c(x, ...)

# S4 method for Itempool c(x, ...)

# S4 method for Testlet c(x, ...)

# S4 method for Response c(x, ...)

# S4 method for Response_set c(x, ...)

Value

An Itempool-class object.

A Response_set-class object.

Arguments

x

A list consist of Response-class or Response_set-class objects.

...

Additional arguments

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)

# Concatenate items
c(item1, item2)

ip <- itempool(a = c(1, 1.2), b = c(1, 2), c = c(.2, .4))
# Concatenate items and an Itempool object
c(item1, ip)
c(item1, item2, ip)
c(ip, item1, item2)

Run the code above in your browser using DataLab