Learn R Programming

ppclust (version 1.1.0.1)

as.ppclust: 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, ...)

Value

an object of ppclust class.

Arguments

objx

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

...

additional arguments.

Author

Zeynel Cebeci

See Also

is.ppclust, ppclust2, summary.ppclust

Examples

Run this code
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)

Run the code above in your browser using DataLab