Learn R Programming

flexclust (version 1.4-1)

kcca2df: Convert Cluster Result to Data Frame

Description

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

Usage

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab