Uses k-means and hierarchical clustering to group geolocator covariates into consistent groups for visual analysis

stk_cluster(df, k = 2, method = "kmeans")

Arguments

df

A skytrackr data frame.

k

The number of k-means/hierarchical clusters to consider.

method

The method to use, "kmeans" (default), "hclust" can be set.

Value

The original data frame with attached cluster labels.