Learn R Programming

corehunter (version 3.2.3)

evaluateCore: Evaluate a core collection using the specified objective.

Description

Evaluate a core collection using the specified objective.

Usage

evaluateCore(core, data, objective)

Value

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

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.

See Also

coreHunterData, objective

Examples

Run this code
# \donttest{
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"))
# }

Run the code above in your browser using DataLab