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.
get_dfItems(df, items)get_dfItemsrev(df, dfItems, revitems, minmax)
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.
A data frame given as the argument to scoreScale
Item index, given as argument to scoreScale
A data frame with only items, created and used by
scoreScale
as an interim step in scoring a scale
Items to reverse, given as argument to
scoreScale
Minimum and maximum possible item values, given as argument to
scoreScale