invertItems: invertItems

Description Usage Arguments Value Author(s) See Also Examples

View source: R/invertItems.R

Description

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

Usage

1
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.

Author(s)

Gjalt-Jorn Peters

Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>

See Also

invertItem

Examples

1
invertItems(mtcars, c('cyl'));

userfriendlyscience documentation built on May 2, 2019, 1:09 p.m.