Note: To get the indices for all samples, use evaluate_k()
instead.
Data input
This function takes a data.frame with a column for samples and a column for abundance
(minimum), but can take any number of other columns. It will then filter the specific sample
that you want to analyze. You can also pre-filter for your specific sample, but you still need to
provide the sample ID (sample_id) and the table always needs a column for Sample and another for Abundance
(indicate how you name them with the arguments samples_col and abundance_col).
Output options
The default option returns a data.frame with Davies-Bouldin, Calinsky-Harabasz and
average Silhouette scores for each k. This is a simple output that can then be used
for other analysis. However, we also provide the option to show a plot (set with_plot = TRUE
).
Three indices are calculated by this function:
Davies-Bouldin with check_DB()
;
Calinsky-Harabasz with check_DB()
;
average Silhouette score check_avgSil()
.