View source: R/getUpDownCluster.R
getUpDownCluster | R Documentation |
Performs a clustering based on the signs of variation between 2 timepoints. Optionally, if the difference between 2 timepoints is lower than a given threshold, the returned difference will be 0.
getUpDownCluster(X, diff_threshold = 0)
X |
a dataframe or list of dataframe with the same number of rows. |
diff_threshold |
a number (optional, default 0), if the difference between 2 values is lower than the threshold, the returned sign will be 0 (no variation). |
demo <- suppressWarnings(get_demo_cluster())
X <- list(X = demo$X, Y = demo$Y, Z = demo$Z)
res <- getUpDownCluster(X)
class(res)
getCluster(res)
X <- demo$X
res <- getUpDownCluster(X)
res <- getUpDownCluster(X, diff_threshold = 15)
res_cluster <- getCluster(res)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.