Learn R Programming

irt (version 0.2.9)

is.Item: Check whether an object is an Item-class

Description

Check whether an object is an Item-class

Check whether an object is an Itempool-class object

Check whether an object is a Testlet-class object

Usage

is.Item(x)

is.Itempool(x)

is.Testlet(x)

Arguments

x

an object that is checked for being a member of 'Testlet' class

Author

Emre Gonulates

Examples

Run this code
i1 <- item(a = 1, b = 2)
is.Item(i1)
# Alternatively:
is(i1, "Item")

# Not an item:
is.Item("abc")

Run the code above in your browser using DataLab