data.frame or data.sheet containing the data to cluster. Each row
corresponds to an observation, and each column corresponds to a
variable. All variables must be numeric. Missing values (NAs) are
allowed.
centers
integer giving number of clusters, or matrix of starting cluster centers.
OPTIONAL ARGUMENTS:
variables
variables to cluster. All variables must be numeric.
subset
subsetting expression for rows.
AG na.rm
logical value indicating whether to omit rows with missing values.
iter
number of iterations.
print.type
character string "None" or "Short" indicating whether to print the summary
for the model.
save.name
name of data frame in whcih to save cluster IDs if
save.cluster.p=T.
save.cluster.p
logical flag indicating whether to save cluster ID's.
x
deprecated argument.
VALUE:
returns and object of class
kmeans. See
kmeans for details.