getMetricRangeByCluster: Get the range of each metric per cluster from the optimal...

View source: R/metricsAnalysis.R

getMetricRangeByClusterR Documentation

Get the range of each metric per cluster from the optimal cluster. getMetricRangeByCluster

Description

Obtains the ranges of the metrics obtained by each optimal cluster.

Usage

getMetricRangeByCluster(df, k.range, bs, seed)

Arguments

df

Input data frame. The first column denotes the identifier of the evaluated individuals. The remaining columns contain the metrics used to evaluate the individuals. Rows with NA values will be ignored.

k.range

Range of k values in which the optimal k will be searched

bs

Bootstrap re-sample param.

seed

Random seed to be used.

Value

A dataframe including the min and the max value for each pair (metric, cluster).

Examples

data("ontMetrics")
ranges = getMetricRangeByCluster(ontMetrics, k.range=c(2,3), bs=20, seed=100)
View(ranges)

neobernad/evaluomeR documentation built on Feb. 28, 2024, 12:37 p.m.