Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

vegclust2kmeans

Reshapes as kmeans object


Description

This function casts an object of class vegclust into an object of class kmeans.

Usage

vegclust2kmeans(x)

Arguments

x

An object of class vegclust to be casted, where method="KM" and mode="raw".

Author(s)

Miquel De Cáceres, Forest Science Center of Catalonia

See Also

Examples

## Loads data  
data(wetland)
  
## This equals the chord transformation 
## (see also  \code{\link{decostand}} in package vegan)
wetland.chord = as.data.frame(sweep(as.matrix(wetland), 1, 
                              sqrt(rowSums(as.matrix(wetland)^2)), "/"))

## Create noise clustering with 3 clusters. Perform 10 starts from random seeds 
wetland.vc = vegclust(wetland.chord, mobileCenters=3, 
                      method="KM", nstart=10)

## Reshapes as kmeans object
wetland.km = vegclust2kmeans(wetland.vc)
wetland.km

vegclust

Fuzzy Clustering of Vegetation Data

v1.7.7
GPL (>= 2)
Authors
Miquel De Cáceres [aut, cre]
Initial release
2019-01-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.