Convert Cluster Result to Data Frame

Share:

Description

Convert object of class "kcca" to a data frame in long format.

Usage

1
kcca2df(object, data)

Arguments

object

Object of class "kcca".

data

Optional data if not saved in object.

Value

A data.frame with columns value, variable and group.

Examples

1
2
3
4
c.iris <- cclust(iris[,-5], 3, save.data=TRUE)
df.c.iris <- kcca2df(c.iris)
summary(df.c.iris)
densityplot(~value|variable+group, data=df.c.iris)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.