This function discards unwanted variables from the cypro object and makes them unavailable for subsequent analysis steps. Might be useful for decreasing the overall object size.
discardStatVariables(object, stat_variables, verbose = NULL)
keepStatVariables(object, stat_variables, verbose = NULL)
object | A valid cypro object. |
---|---|
stat_variables | Character vector. The variables from the cell statistics data you want to discard
in case of |
verbose | Logical. If set to TRUE informative messages regarding the computational progress will be printed. (Warning messages will always be printed.) |
cluster_variables | Character vector. The cluster variables you want to discard. |
An updated version of the input cypro
-object.
As clustering and dimensional reduction results base on stat variables
or variable sets to be more precise all clustering results in slot @analysis that included variables denoted
in argument stat_variables
are discarded, too. This is because clustering
results based on variable x, y and z might differ from results based
on only variables x and y.
Defined variable sets including variables that are discarded are modified in a way that they only contain variables that remain in the cypro object.
Correlation results are not discarded but only filtered accordingly. This is because correlation results between variable x and variable y are not affected by discarding variable z.