Converts underlying data into an Item Matrix frame.
as_item_matrix(x, ...)
x | Either a |
---|---|
... | Not used |
An item_matrix
object.`
item_matrix()
acts as an alias for as_item_matrix()
# Item matrix values x = matrix(c(1, 0, 0, 1), nrow = 2) # Construct item class items = as_item_matrix(x) # View output items#> An item matrix: 2 x 2 #> #> Item1 Item2 #> Subject1 1 0 #> Subject2 0 1