powered by
To calculate the distance depending on option given.
option
clusterDistanceByApproach(distances, approach)
is a numeric vector.
is a string. Type of function to apply.
max, min or average from a vector.
This function is part of the hierarchical clusterization method. The function calculates the distance value from distances.
distances
approach indicates the algorithm used to get the value. Possible values: 'MAX', 'MIN', 'AVG'.
approach
'MAX'
'MIN'
'AVG'
# NOT RUN { distances1 <- c(4,14,24,34) distances2 <- c(1:10) clusterDistanceByApproach(distances1,'MAX') clusterDistanceByApproach(distances2,'MIN') # }
Run the code above in your browser using DataLab