R: Convert Cluster Result to Data Frame

kcca2df {flexclust} | R Documentation

## 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

    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)

[Package flexclust version 1.3-4 Index]