Description Usage Arguments Details Author(s) Examples
View source: R/subsetReverse.R
This function allows you to reverse score and subset data from a data frame. It returns a data frame of items with a particular preface (e.g. BFI).
1 2 | subsetReverse(data = data, varPreface, reverseNum = c(), maxScore, minScore,
items)
|
data |
What is the name of data set? Defaults to data. |
varPreface |
What is the variable preface of the scale? |
reverseNum |
Which items are reverse scored? |
maxScore |
What is the maximum score possible? |
minScore |
What is the minimum score possible? |
items |
The number of items in the test |
The subsetReverse
function requires the target dataset to
to be formatted in a particular way.
All items must be ordered from lowest to highest
Any column with the test preface must refer to a scored test item.
Joseph Hoyda
1 | subsetReverse(myData, "BFI", reverseNum=c(1,3,5,7), maxScore=5, minScore=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.