k_clouds: k-clouds clustering

Description Usage Arguments Value

View source: R/cloud.R

Description

k-clouds clustering

Usage

1
2
k_clouds(df, var = NULL, group = NULL, k = NULL, threshold = 0.01,
  iter = 100)

Arguments

df

data frame with the data to cluster

var

character or integer indicating the column name or position of the numeric column to evalute for defining the clusters, 1L by default

group

character or integer indicating the column name or position of the column that defines the treatments, 2L by default

k

integer, number of super-groups to cluster in

threshold

double, value to stop the iteration. Stops if the difference between the previous total distance and the current total distance is less than threshold

iter

integer, maximum number of iterations

Value

a data frame with columns group and cluster. - group: referencies the group variable - cluster: a letter indicating the cluster to which the group belongs


nebulae-co/clouds documentation built on May 29, 2019, 7:15 a.m.