powered by
Inverts items (as in, in a questionnaire), by calling invertItem on all relevant items.
invertItem
invertItem(item, fullRange = NULL, ignorePreviousInversion = FALSE)invertItems(dat, items = NULL, ...)
invertItems(dat, items = NULL, ...)
The dataframe with the specified items inverted.
The vector to invert.
The full range; will otherwise be derived from the vector.
Whether to avoid inverting items that were already inverted.
The dataframe containing the variables to invert.
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.
Gjalt-Jorn Peters
Maintainer: Gjalt-Jorn Peters gjalt-jorn@userfriendlyscience.com
invertItems(mtcars, c('cyl'));
Run the code above in your browser using DataLab