get_dfItems {PROscorerTools} | R Documentation |
Get a data frame with only items from user input
Description
Given a data frame and an item index, returns a data frame
containing only the items. These functions are used internally by other
PROscorerTools functions, particularly scoreScale
. Their job
is to return a data frame containing only the items to be scored. These
functions are also used in the scoring functions in the
PROscorer package to help process the user's input. These
functions will be of interest mainly to developers wishing to contribute to
the PROscorer package.
Usage
get_dfItems(df, items)
get_dfItemsrev(df, dfItems, revitems, minmax)
Arguments
df |
A data frame given as the argument to |
items |
Item index, given as argument to |
dfItems |
A data frame with only items, created and used by
|
revitems |
Items to reverse, given as argument to
|
minmax |
Minimum and maximum possible item values, given as argument to
|
Value
These functions return a data frame containing only the items to be
scored. In the case of get_dfItemsrev
, the specified items will be
reverse scored in the returned data frame.