Usage
kcca(x, k, family=kccaFamily("kmeans"), weights=NULL, group=NULL, control=NULL)
kccaFamily(which=NULL, dist=NULL, cent=NULL, name=which, similarity=FALSE,
preproc = NULL, trim=0, groupFun = "majorityClusters")## S3 method for class 'kcca':
summary(object)
Arguments
x
A numeric matrix of data, or an object that can be coerced to
such a matrix (such as a numeric vector or a data frame with all
numeric columns).
k
Either the number of clusters or a set of initial
(distinct) cluster centroids. If a number, a random set of (distinct)
rows in x is chosen as the initial centroids.
family
Object of class kccaFamily.
weights
An optional vector of weights to be used in the clustering
process, cannot be combined with all families.
group
An optional grouping vector for the data, see details
below.
control
An object of class flexclustControl.
which
One of "kmeans", "kmedians",
"angle", "jaccard", or "ejaccard".
name
Optional long name for family, used only for show methods.
dist
A function for distance or similarity computation, ignored
if which is specified.
cent
A function for centroid computation, ignored
if which is specified.
similarity
Logical, if TRUE then dist is
interpreted as a similarity instead of a distance measure, ignored
if which is specified.
preproc
Function for data preprocessing.
trim
A number in between 0 and 0.5, if non-zero then trimmed
means are used for the kmeans family, ignored by all other
families.
groupFun
Function or name of function to obtain clusters for
grouped data, currently an experimental feature.
object
Object of class "kcca".