calculate_mean_liveweight_slaughter: Calculate mean live weight at slaughter

View source: R/progeny_data_flp.R

calculate_mean_liveweight_slaughterR Documentation

Calculate mean live weight at slaughter

Description

The program package ECOWEIGHT (C Programs for Calculating Economic Weights in Livestock) need input parameter files. This function will calculate mean live weight at slaughter based on slaughtercategory, marketing-channel (label of Swiss Beef Cattle Assiocation) and sex.

Usage

calculate_mean_liveweight_slaughter(
  ps_input_flp_tibble,
  ps_sex,
  ps_marketing_channel,
  ps_prodsystew,
  pb_log = FALSE,
  plogger = NULL
)

Arguments

ps_input_flp_tibble

input flp tibble coming from read_file_input_flp in this package

ps_sex

statement of sex ("F" for female and "M" for male)

ps_marketing_channel

statement of marketing-channel for Natura-Beef (==2), SwissPrimBeef(==3)

ps_prodsystew

production system build up as option in ECOWEIGHT

pb_log

indicator whether logs should be produced

plogger

logger object

Value

livewt_atslaughter vector


sknqualitasag/qp4ewc documentation built on Sept. 27, 2022, 3:31 p.m.