Description Usage Arguments Value References See Also
This function allows you to normalise the data in selected columns between two values, usually 0 and 1.
1 | do.normalise(dat, use.cols, new.min = 0, new.max = 1, zero.drops = NULL)
|
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. |
A data.table with new columns added, that contain the normalised data.
https://sydneycytometry.org.au/spectre
https://sydneycytometry.org.au/spectre for usage instructions and vignettes.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.