calculate_calvesdied24h_proportion | R Documentation |
The program package ECOWEIGHT (C Programs for Calculating Economic Weights in Livestock) need input parameter files. This function will calculate based on calving score, lactation number of the dam (primiparous vs multiparous) to calculate the proportion of calves died. The parameter in ECOWEIGHT specifies within 48 hours after birth. However, we only have data specified for up to 24hours after birth. Therefore we use 24hours in this function.
calculate_calvesdied24h_proportion( ps_input_calving_tibble, ps_statement_firstlactation = TRUE, ps_statement_easycalving = TRUE, pb_log = FALSE, plogger = NULL )
ps_input_calving_tibble |
input calving tibble coming from read_file_input_calving in this package |
ps_statement_firstlactation |
statement if in first lactation status (TRUE or FALSE) |
ps_statement_easycalving |
statement if for easy calving status (TRUE or FALSE) |
pb_log |
indicator whether logs should be produced |
plogger |
logger object |
calves died to 24 hours proportion vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.