group_rescale: Rescaling variables in groups

Description Usage Arguments Value

View source: R/utils.R

Description

Rescaling variables in groups

Usage

1
group_rescale(data, var, group_var, newvar = NULL)

Arguments

data

a dataframe containing variables you wish to rescale

var

name of the variable to be rescaled

group_var

character vector of the grouping terms

newvar

optional character vector for the name of the new rescaled variable

Value

data with the newvar appended


strategicdataproject/OpenSDPsynthR documentation built on June 20, 2020, 6:17 a.m.