get_dfItems: Get a data frame with only items from user input

View source: R/get_dfItems.R

get_dfItemsR 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 scoreScale

items

Item index, given as argument to scoreScale

dfItems

A data frame with only items, created and used by scoreScale as an interim step in scoring a scale

revitems

Items to reverse, given as argument to scoreScale

minmax

Minimum and maximum possible item values, given as argument to scoreScale

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.


PROscorerTools documentation built on Oct. 17, 2023, 9:06 a.m.