Skip to contents

Reads the method and version properties from the std_npsych_scores columns produced by std_data(), and uses the prefix_std attribute on dat to strip the prefix from column names.

Usage

methods_from_std_data(dat, std_cols = NULL)

Arguments

dat

A data.frame or data.table returned by std_data(). Must carry a prefix_std attribute (set automatically by std_data()).

std_cols

Optional character vector of standardized column names to inspect. If omitted, all std_npsych_scores columns are used.

Value

A named list, one element per standardized column. Each element is a character vector with method and version entries. Names correspond to score column names with the prefix_std stripped.