kmeans_analysis: Run kmeans analysis

Description Usage Arguments Value

View source: R/kmeans-analysis.R

Description

Note: this function takes as argument all the arguments used by the stats::kmeans function.

Usage

1
2
kmeans_analysis(x, n_centers, nstart = 1, seed = NULL,
  exclude_variables = list("lon", "lat", "id_pixel"), ...)

Arguments

x

a dataframe or a matrix containing the data. The data should be standardized for better results

n_centers

Number of clusters to be used. A vector such as 2:5

nstart

how many random sets should be chosen?

seed

Random seed set for reproducibility purposes. Numeric, NULL by default. (Integer)

exclude_variables

variables to exclude from kmeans analysis. A list of characters

...

Other arguments accepted by the stats::kmeans function.

Value

An object of class kmeans


pegoraro/qchlorophyll documentation built on May 24, 2019, 11:46 p.m.