kcca2df: Convert Cluster Result to Data Frame

Description Usage Arguments Value Examples

View source: R/boxplot.R

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)

Example output

Loading required package: grid
Loading required package: lattice
Loading required package: modeltools
Loading required package: stats4
     value               variable   group  
 Min.   :0.100   Sepal.Length:150   1:200  
 1st Qu.:1.700   Sepal.Width :150   2:156  
 Median :3.200   Petal.Length:150   3:244  
 Mean   :3.465   Petal.Width :150          
 3rd Qu.:5.100                             
 Max.   :7.900                             

flexclust documentation built on Feb. 14, 2018, 5:03 p.m.

Related to kcca2df in flexclust...