Allows for a dichotomous items matrix to be imported with standard styling.
read_item_matrix(file, header = FALSE, sep = " ", skip = 0)
file | name, url, or connections of the file to be read |
---|---|
header | a logical value to indicate if the data contains a
description field as the first row. Default is |
sep | the field separator character. Values on each line of the
file are separated by this character. Default is white
space given by |
skip | the number of lines of the data file that should be skipped before the data is read. Default is 0. |
A matrix
labeled with row names as SubjectXX
and column names as ItemYY
This function is designed to specifically read in dichotomous item matrices into R. The matrix must be structured with the appropriate separator.
item_matrix()
/ as_item_matrix()
for constructing an Item Matrix from an
existing class.