longen_psych_wide: Longen a wide psych-scored scale

View source: R/questionnaire_tools.R

longen_psych_wideR Documentation

Longen a wide psych-scored scale

Description

Longen a wide psych-scored scale

Usage

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'


jflournoy/scorequaltrics documentation built on April 29, 2022, 9:17 p.m.