R: Cluster contigency table

sits_cluster_frequency {sits} | R Documentation

## 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.

### Author(s)

Rolf Simoes, rolf.simoes@inpe.br

### Examples

    ## 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)

    ## End(Not run)

[Package sits version 0.14.1 Index]