as_item_matrix: Coerce 'data.frame' and 'matrix' classes to an Item Matrix.

Description Usage Arguments Details Value See Also Examples

View source: R/item-matrix.R

Description

Converts underlying data into an Item Matrix frame.

Usage

1

Arguments

x

Either a data.frame or matrix.

...

Not used

Details

item_matrix() acts as an alias for as_item_matrix()

Value

An item_matrix object.'

See Also

item_matrix()

Examples

1
2
3
4
5
6
7
8
# Item matrix values
x = matrix(c(1, 0, 0, 1), nrow = 2)

# Construct item class
items = as_item_matrix(x)

# View output
items

tmsalab/edmcore documentation built on Sept. 4, 2021, 2:46 a.m.