Learn R Programming

sits (version 0.13.0)

sits_cluster_frequency: Cluster contigency table

Description

Computes the contingency table between labels and clusters. This function needs as input a sits tibble with `cluster` column.

Usage

sits_cluster_frequency(samples)

Arguments

samples

A tibble with `cluster` column.

Value

A matrix containing all frequencies of labels in clusters.

Examples

Run this code
# NOT RUN {
# Load the "dtwclust" package
# library(dtwclust)
# create clusters by cutting a dendrogram
clusters <- sits_cluster_dendro(cerrado_2classes, bands = c("NDVI", "EVI"))
# show clusters samples frequency
sits_cluster_frequency(clusters)
# }

Run the code above in your browser using DataLab