Learn R Programming

clusterfly (version 0.4)

cfly_cluster: Add clustering.

Description

Clustering method needs to respond to clusters, if the default does not work, you will need to write your own to extract clusters.

Usage

cfly_cluster(cf, method, ..., name = deparse(substitute(method)))

Arguments

cf
clusterfly object
method
clusterfing method (function)
...
arguments passed to clustering method
name
name of clustering

Examples

Run this code
o <- olive_example()
cfly_cluster(o, kmeans, 4)
cfly_cluster(o, kmeans, 4, name="blah")

Run the code above in your browser using DataLab