as.ppclust: Convert object to 'ppclust' class

View source: R/tools.R

as.ppclustR Documentation

Convert object to ‘ppclust’ class

Description

Converts an object of the classes fanny.object, summary.fclust, kmeans or vegclust to ‘ppclust’ class.

Usage

as.ppclust(objx, ...)

Arguments

objx

an object to be converted to an instance of ppclust class.

...

additional arguments.

Value

an object of ppclust class.

Author(s)

Zeynel Cebeci

See Also

is.ppclust, ppclust2, summary.ppclust

Examples

data(iris)
# Create an fclust object
ofc <- fclust::FKM(X=iris[,1:4], k=3)

# Test the class of object 'ofc' 
class(ofc)

# Convert 'ofc' to ppclust object
opc <- as.ppclust(ofc)

# Test the class of 'opc' object
class(opc)

ppclust documentation built on May 29, 2024, 7:20 a.m.