calculate_mean_slaughterage: Calculate mean slaughter age

View source: R/progeny_data_flp.R

calculate_mean_slaughterageR Documentation

Calculate mean slaughter age

Description

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

Usage

calculate_mean_slaughterage(
  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

slaughterage vector


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