Description Usage Arguments Value
View source: R/kmeans-analysis.R
Note: this function takes as argument all the arguments used by the stats::kmeans function.
1 2 | kmeans_analysis(x, n_centers, nstart = 1, seed = NULL,
exclude_variables = list("lon", "lat", "id_pixel"), ...)
|
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. |
An object of class kmeans
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.