truncateTransform {flowCore} | R Documentation |
Create the definition of the truncate Transformation that will be
applied on some parameter via the transform
method.
The definition of this function is currently x[x<a] <- a.
Hence, all values less than a are replaced by a. The typical use would be to replace all
values less than 1 by 1.
truncateTransform(transformationId, a=1)
transformationId |
character string to identify the transformation |
a |
double that correponds to the value at which to truncate |
Returns an object of class transform
.
P. Haaland
samp <- read.FCS(system.file("extdata", "0877408774.B08", package="flowCore")) truncateTrans <- truncateTransform(transformationId="Truncate-transformation", a=5) dataTransform <- transform(samp,`FSC-H`=truncateTrans(`FSC-H`))