mean_index2: Add mean index to data frame

Description Usage Arguments Value Author(s) Examples

View source: R/data-management.R

Description

Add a mean index of a defined group of variables to a data frame

Usage

1

Arguments

df

Data frame to add index to

name

Name of the new index

vars

Variables to combine to an index

Value

df

Author(s)

Dominik Vogel

Examples

1
2
df <- mtcars
mean_index2(df, "mean", vars = c(c("gear", "carb")))

DominikVogel/vogelR documentation built on May 23, 2019, 4:12 p.m.