Learn R Programming

MoBPS (version 1.13.1)

computing.costs.cohorts: Compute costs of a breeding program by cohorts

Description

Function to derive the costs of a breeding program / population-list by cohorts

Usage

computing.costs.cohorts(
  population,
  gen = NULL,
  database = NULL,
  cohorts = NULL,
  json = TRUE,
  phenotyping.costs = NULL,
  genotyping.costs = 0,
  housing.costs = NULL,
  fix.costs = 0,
  fix.costs.annual = 0,
  profit.per.bv = 1,
  interest.rate = 1,
  verbose = TRUE
)

Value

Cost-table for selected gen/database/cohorts of a population-list

Arguments

population

population-list

gen

Quick-insert for database (vector of all generations to consider)

database

Groups of individuals to consider

cohorts

Quick-insert for database (vector of names of cohorts to consider)

json

If TRUE extract which cohorts to plot according to the json-file used in json.simulation

phenotyping.costs

Costs for the generation of a phenotype

genotyping.costs

Costs for the generation of a genotype

housing.costs

Costs for housing

fix.costs

one time occurring fixed costs

fix.costs.annual

annually occurring fixed costs

profit.per.bv

profit generated by bv per animal

interest.rate

Applied yearly interest rate

verbose

Set to FALSE to not display any prints

Examples

Run this code
data(ex_pop)
computing.costs.cohorts(ex_pop, gen=1:5, genotyping.costs=25, json=FALSE)

Run the code above in your browser using DataLab