Description Usage Arguments Details Value Examples
This function turns a scale in the form of A = 1, 5, 10R, 15r
into a list which of
the scale used
the name of the scale
the items to use for the scale (by position in data frame or questionnaire)
the items that need to be recoded.
1 |
scale |
A description of a scale in the form of |
Items that need to be recoded are indicated using an R
or r
behind the number of the item.
Returns a list that list that contains four entries: The input used (original.scale
), the derived name of the scale (name
), the items that constitute the scale items
, the items that need to be recoded (recode
)
1 2 3 4 5 6 | scales = c("E = 1r, 6, 11R, 16",
"A = 2r, 7, 12r, 17r",
"C = 3, 8r, 13, 18",
"N = , 9r, 14, 19",
"O = 4, 10RR, 15, 20 21")
scale2list(scales[1])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.