invertItems

Inverts items (as in, in a questionnaire), by calling invertItem on all relevant items.

Keywords
univariate
Usage
invertItems(dat, items = NULL, ...)
Arguments
dat
The dataframe containing the variables to invert.
items
The names or indices of the variables to invert. If not supplied (i.e. NULL), all variables in the dataframe will be inverted.
Arguments (parameters) passed on to data.frame when recreating that after having used lapply.
Value

The dataframe with the specified items inverted.

See Also

invertItem

Aliases
  • invertItems
Examples
invertItems(mtcars, c('cyl'));
Documentation reproduced from package userfriendlyscience, version 0.6-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.