stdcent: stdcent

Description Usage Arguments Examples

View source: R/stdcent.R

Description

This function produces centered and/or standardized variables. Output is either full dataset with standardized/centered vars or just the selected vars in a dataframe.

Usage

1
stdcent(df, vars, outtype = "both", merged = TRUE)

Arguments

df

dataframe

vars

character vector of variables to be transformed

outtype

standardized (std), centered (cent), or both (both)

merged

specifies whether output is merged dataset or just selected transformations (in a dataframe)

Examples

1

fiksdala/fiksdal documentation built on Jan. 9, 2022, 10:54 p.m.