zcentlong: zcentlong

Description Usage Arguments Examples

View source: R/zcentlong.R

Description

This function produces centered and/or standardized variables for long format dataframes. Merged must=TRUE for now.

Usage

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

Arguments

df

dataframe

vars

character vector of variables to be transformed

id

Name of grouping variable.

outtype

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

merged

specifies whether output is merged dataset or just selected transformations (in a dataframe): MUST BE TRUE FOR zcentlong.

Examples

1

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