do.rescale: do.rescale - Re-scale data in selected columns between two...

Description Usage Arguments Value References See Also

View source: R/do.rescale.R

Description

This function allows you to re-scale the data in selected columns between two values, usually 0 and 1.

Usage

1
do.rescale(dat, use.cols, new.min = 0, new.max = 1, append.name = "_rescaled")

Arguments

dat

NO DEFAULT. data.table Input sample.

use.cols

NO DEFAULT. Vector of character column names – these columns will be normalised and added to the data.table as new columns.

new.min

DEFAULT = 0. The new minimum value.

new.max

DEFAULT = 1. The new maximum value.

append.name

DEFAULT = '_rescaled'. Text to be appended to the column names of re-scaled data.

Value

A data.table with new columns added, that contain the re-scaled data.

References

https://sydneycytometry.org.au/spectre

See Also

https://sydneycytometry.org.au/spectre for usage instructions and vignettes.


sydneycytometry/Spectre documentation built on March 20, 2021, 2:15 a.m.