Description Usage Arguments Details Value Examples
View source: R/selectTrialAnimals.R
Select which animals to include and which to exclude from the trial
1 | selectTrialAnimals(data, nB, nZ, minWeight, maxWeight)
|
data |
data.table with columns Opm. (comments), Sex (sex of piglets), and Speen_gew (weaning weights of piglets) |
nB |
numeric number of barrows to be selected |
nZ |
numeric number of gilts to be selected |
minWeight |
numeric minimum weight of piglets to be selected |
maxWeight |
numeric maximum weight of piglets to be selected |
If not enough piglets meet the in trial criteria the function removes the lowest weight animals until it is left with the required amount. The function tries to select piglets in such a way that the Coefficient of Variation op weaning weights is minimized
list with elements animalsInTrial (piglets selected for trial) and animalsOutTrial (piglets left out of trial)
1 | animalsInTrial <- selectTrialAnimals(biggen,72,72,5.4,9.5)[[1]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.