Description Usage Arguments Value Author(s) See Also Examples
Inverts items (as in, in a questionnaire), by calling invertItem
on all relevant items.
1 | invertItems(dat, items = NULL, ...)
|
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. |
The dataframe with the specified items inverted.
Gjalt-Jorn Peters
Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>
1 | invertItems(mtcars, c('cyl'));
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.