do.normalise: do.normalise - Normalise data in selected columns between two...

Description Usage Arguments Value References See Also

View source: R/do.normalise.R

Description

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

Usage

1
do.normalise(dat, use.cols, new.min = 0, new.max = 1, zero.drops = NULL)

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.

zero.drops

DEFAULT = NULL. This is an experimental calculation which should reduce noise from negative values. Use with caution. Supplying a vector of values for each column (that matches the order or use.cols) that reflects the negative 'cutoff' for eachc column. Values below this will be turned into this value, which will all then be converted to 0.

Value

A data.table with new columns added, that contain the normalised data.

References

https://sydneycytometry.org.au/spectre

See Also

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


tomashhurst/Spectre documentation built on Dec. 23, 2021, 11:55 a.m.