add_clust2ts | R Documentation |
Add clustering assignments from clustering output to time series data list and store the data in a data frame.
add_clust2ts(plist, clustdat)
plist |
List storing patient time series data (also see function: patient_list) |
clustdat |
Object of type list storing clustering data (also see function: clust_matrix) |
Processed data frame storing time series data 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) ts <- add_clust2ts(list, clustering)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.