grand_center: Grand mean centering of one or more variables

grand_centerR Documentation

Grand mean centering of one or more variables

Description

Grand mean centering of one or more variables

Usage

grand_center(variables, data, prefix = "gc.", std = F)

Arguments

variables

Character vector of variables names

data

Data frame

prefix

Character, added to the befinning of centered variable name.

std

Logical. Should the variable be standardized (divided by its std. deviation)?

Value

Returns an original data frame binded with the new centered variables


MaksimRudnev/LittleHelpers documentation built on Nov. 5, 2024, 10:16 p.m.