evaluateCore: Evaluate a core collection using the specified objective.

View source: R/analysis.R

evaluateCoreR Documentation

Evaluate a core collection using the specified objective.

Description

Evaluate a core collection using the specified objective.

Usage

evaluateCore(core, data, objective)

Arguments

core

A core collection of class chcore, or a numeric or character vector indicating the indices or ids, respectively, of the individuals in the evaluated core.

data

Core Hunter data (chdata) containing genotypes, phenotypes and/or a precomputed distance matrix. Can also be an object of class chdist, chgeno or chpheno if only one type of data is provided.

objective

Objective function (chobj) used to evaluate the core.

Value

Value of the core when evaluated with the chosen objective (numeric).

See Also

coreHunterData, objective

Examples


data <- exampleData()
core <- sampleCore(data, objective("EN", "PD"))
evaluateCore(core, data, objective("EN", "PD"))
evaluateCore(core, data, objective("AN", "MR"))
evaluateCore(core, data, objective("EE", "GD"))
evaluateCore(core, data, objective("CV"))
evaluateCore(core, data, objective("HE"))



corehunter documentation built on Sept. 1, 2023, 5:07 p.m.