Extract standardization method and version from std_data() output
Source: R/methods_from_std_data.R
methods_from_std_data.RdReads 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.
Arguments
- dat
A
data.frameordata.tablereturned bystd_data(). Must carry aprefix_stdattribute (set automatically bystd_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.