powered by
Inverts items (as in, in a questionnaire), by calling invertItem on all relevant items.
invertItem
invertItems(dat, items = NULL, ...)
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.
The dataframe with the specified items inverted.
# NOT RUN { invertItems(mtcars, c('cyl')); # }
Run the code above in your browser using DataLab