sits_cluster_clean {sits} | R Documentation |
Removes labels that are minority in each cluster.
Description
Takes a tibble with time series
that has an additional 'cluster' produced by
link[sits]{sits_cluster_dendro()}
and removes labels that are minority in each cluster.
Usage
sits_cluster_clean(samples)
Arguments
samples |
Tibble with set of time series with additional
cluster information produced
by |
Value
Tibble with time series (class "sits")
Author(s)
Rolf Simoes, rolf.simoes@inpe.br
Examples
if (sits_run_examples()) {
clusters <- sits_cluster_dendro(cerrado_2classes)
freq1 <- sits_cluster_frequency(clusters)
freq1
clean_clusters <- sits_cluster_clean(clusters)
freq2 <- sits_cluster_frequency(clean_clusters)
freq2
}
[Package sits version 1.5.0 Index]