getProductionStatus: Get production status of group

Description Usage Arguments Details Value

View source: R/getProductionStatus.R

Description

Get production status of group

Usage

1
2
3
4
5
6
7
getProductionStatus(
  ped,
  minParentAge = 3,
  maxOffspringAge = NULL,
  housing = "shelter_pens",
  currentDate = Sys.Date()
)

Arguments

ped

Dataframe that is the 'Pedigree'. It contains pedigree information. The id, dam, sex and age (in years) columns are required.

minParentAge

Numeric values to set the minimum age in years for an animal to have an offspring. Defaults to 2 years. The check is not performed for animals with missing birth dates.

maxOffspringAge

Numeric values to set the maximum age in years for an animal to be counted as birth in calculation of production status ratio.

housing

character vector of length 1 having the housing type, which is either "shelter_pens" or "corral".

currentDate

Date to be used for calculating age. Defaults to Sys.Date().

Details

Description of how Production and Production Status (color) is calculated.

  1. The Production Status is calculated on September 09, 2019, Births = count of all animals in group born since January 1, 2017 through December 31, 2018, that lived at least 30 days.

  2. Dams = count of all females in group that have a birth date on or prior to September 09, 2016.

  3. Production = Births / Dams

  4. Production Status (color)

    1. Shelter and pens

      1. Production < 0.6; Red

      2. Production >= 0.6 and Production <= 0.63; Yellow

      3. Production > 0.63; Green

    2. Corrals

      1. Production < 0.5; Red

      2. Production >= 0.5 and Production <= 0.53; Yellow

      3. Production > 0.53; Green

This code may need to be modified to allow the user to supply a list of IDs to include as group members. Currently each animal in the provided pedigree (ped) is considered to be a member of the group.

Value

production – Ratio of the number of births that live >30 days to the number of females >= 3 years of age.


rmsharp/nprcmanager documentation built on April 24, 2021, 3:13 p.m.