
Remove Variables with Low Variance Remove Variables with Low Variance
remove_low_var.Rd
Filters variables whose variance falls below a threshold. Default behavior is to remove variables with zero variance.
Usage
remove_low_var(x, var_cutoff = 0, by = NULL, strict = FALSE)
# S3 method for class 'glyexp_experiment'
remove_low_var(x, var_cutoff = 0, by = NULL, strict = FALSE)
# S3 method for class 'matrix'
remove_low_var(x, var_cutoff = 0, by = NULL, strict = FALSE)
# Default S3 method
remove_low_var(x, var_cutoff = 0, by = NULL, strict = FALSE)
Arguments
- x
Either a
glyexp_experiment
object or a matrix.- var_cutoff
The cutoff for variance. Defaults to 0.
- by
A factor specifying the groupings. Defaults to NULL.
- strict
If
FALSE
, remove a variable only if it passes the variance threshold in all groups. IfTRUE
, remove a variable if it passes the variance threshold in any group.
Value
For glyexp_experiment
input, returns a modified glyexp_experiment
object.
For matrix input, returns a filtered matrix.