Description Usage Arguments Value Author(s) See Also Examples
Converts an object of ‘ppclust’ class to the other types of cluster objects.
1 |
objx |
an object of |
otype |
target object class type for conversion. |
... |
additional arguments. |
an object of fanny.object
, summary.fclust
, kmeans
or vegclust
class.
Zeynel Cebeci
as.ppclust
,
is.ppclust
,
summary.ppclust
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | data(iris)
# Create a object of ppclust
opc <- fcm(x=iris[,1:4], centers=3)
# Check the class of opc object
is.ppclust(opc)
# Convert ppclust object 'opc' to the fanny object
ofc <- ppclust2(opc, otype="fanny")
# Check the class of 'ofc' for ppclust
is.ppclust(ofc)
# Check the class of 'ofc'
class(ofc)
# Convert ppclust object 'opc' to fclust object
ofc <- ppclust2(opc, otype="fclust")
# Check the class of 'ofc'
class(ofc)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.