standardize_byrgn: Standardize variables by region

Description Usage Arguments Details Value

View source: R/standardize.R

Description

This function applies the standardize function to each regional grouping and recombines the resutls into a single data frame.

Usage

1

Arguments

df

Data frame with the data to be standardized.

vars

Vecotr of names of columns to be standardized.

Details

The means and scales for the transformations are stored in the mean and scale attributes of the output. Each is a list indexed by region, with each list element being a named vector indexed by variable.

Value

Data frame with the requested variables standardized.


JGCRI/eiamod documentation built on Feb. 21, 2020, 9:16 a.m.