read_item_matrix: Import an Items Matrix

Description Usage Arguments Details Value See Also

View source: R/read-helpers.R

Description

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

Usage

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

Details

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

Value

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

See Also

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


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