do.zscore: do.zscore - Calculate z.score for a dataset

View source: R/do.zscore.R

do.zscoreR Documentation

do.zscore - Calculate z.score for a dataset

Description

do.zscore - Calculate z.score for a dataset

Usage

do.zscore(dat, use.cols)

Arguments

dat

NO DEFAULT. A data.table (or data.frame) containing the data to be converted to z-scores. Z-score transformed values will be added as new columns.

use.cols

NO DEFAULT. The columns to be used for z-score calculations.

append.name

DEFAULT = '_zscore'. Text to be appended to the end of the new z-score transformed columns.

replace

DEFAULT = FALSE. If FALSE, appends new columns to the data.table. If TRUE, replaces the values in the existing columns with the z-score tranformed values, and does not change the column names.

Value

Returns a new data.table with z-score calculations for each selected column


ImmuneDynamics/Spectre documentation built on Nov. 12, 2023, 8:12 a.m.