
function_scale
function_scale.Rd
function_scale
Arguments
- input.matrix
A matrix
- f
A function. This function must take a numeric matrix as its first argument--when applied by
function_scale
, this will be the matrix of biomarker expressions. IfMARGIN
is1
or2
,f
can instead take a numeric vector, andf
will beapply
'd across the specified margin. Additional arguments may be passed via the dots.- MARGIN
Whether to apply the function within each biomarker (
1
) or across all biomarkers in each cell (2
). Iff
doesn't need to work withapply
, can passMARGIN = NULL
.- ...
Additional arguments passed to
f
.