Is object an Item Matrix?
is_item_matrix(x)
x | An object to test |
---|
A logical vector
#> Warning: data length [5] is not a sub-multiple or multiple of the number of rows [3]# Coerce to an item matrix items = item_matrix(x) # Verify output is an item matrix is_item_matrix(items)#> [1] TRUE# Not an item matrix, but a regular matrix... is_item_matrix(x)#> [1] FALSE