is.ppclust | R Documentation |
Checks the class of given object whether it is an instance of the ppclust
class or not.
is.ppclust(objx)
objx |
an object to be checked for its class. |
TRUE
if objx
is a valid ppclust
object and FALSE
for the other types of object classes.
Zeynel Cebeci
as.ppclust
,
ppclust2
,
summary.ppclust
data(iris)
# Run FCM for 3 clusters
res.fcm <- fcm(x=iris[,1:4], centers=2)
# Test for a ppclust object returned by the fcm function
is.ppclust(res.fcm)
# Test for a matrix object
x <- matrix(nrow=3, ncol=2, c(1,4,2,5,7,8))
is.ppclust(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.