Longen a wide psych-scored scale

longen_psych_wide(psychMat, scale_name = "scale", id_colname = "id")

Arguments

psychMat

a matrix from the $scores element of a psych object.

scale_name

use to specify the name of the scale.

id_colname

use to set the column name of for the ids (taken from the rownames of the psychMat).

Value

a long data frame with an id column defined by id_colname, 'scale_name', 'scored_scale', and 'score'