Allows for a dichotomous items matrix to be imported with standard styling.

read_item_matrix(file, header = FALSE, sep = " ", skip = 0)

Arguments

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 FALSE.

sep

the field separator character. Values on each line of the file are separated by this character. Default is white space given by sep = " ".

skip

the number of lines of the data file that should be skipped before the data is read. Default is 0.

Value

A matrix labeled with row names as SubjectXX and column names as ItemYY

Details

This function is designed to specifically read in dichotomous item matrices into R. The matrix must be structured with the appropriate separator.

See also

item_matrix() / as_item_matrix() for constructing an Item Matrix from an existing class.