add_clust2enrich | R Documentation |
Add clustering assignments from clustering output to pre-processed extended/enrichment data frame.
add_clust2enrich(enrich, clustdat)
enrich |
Preprocessed enrichment data frame (also see function: add_enrich) |
clustdat |
Object of type list storing clustering data (also see function: clust_matrix) |
Processed data frame with added column indicating cluster assignments
list <- patient_list( "https://raw.githubusercontent.com/MrMaximumMax/FBCanalysis/master/demo/phys/data.csv", GitHub = TRUE) #Sampling frequency is supposed to be daily clustering <- clust_matrix(matrix, method = "kmeans", nclust = 3) enr <- add_enrich(list, 'https://raw.githubusercontent.com/MrMaximumMax/FBCanalysis/master/demo/enrich/enrichment.csv') enr <- add_clust2enrich(enr, clustering)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.