Description Usage Arguments Value Author(s) See Also
Given a set of variables, some of which may need to be reverse-scored, this function returns a column vector mean of those variables after reverse-scoring those so designated.
1 |
data |
A data.frame containing the variables in both |
variables |
Variables to be retained in the dataset but that do not need to be reverse-scored |
reversed |
Variables to be reverse-scored |
max |
The maximum possible value for |
label |
Name to be given to the new mean variable. |
A named column vector equal to the mean of a combination of variables
and
reversed
after the latter have been reverse-scored.
Bill Altermatt
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.