build_freq_conf_fat: Build carcass conformation and fat frequencies depending on...

View source: R/conformation_fat_flp.R

build_freq_conf_fatR Documentation

Build carcass conformation and fat frequencies depending on slaughtercategory

Description

The program package ECOWEIGHT (C Programs for Calculating Economic Weights in Livestock) need input parameter files. This function will prepare carcass conformation and fat matrices depending on slaughtercategory.

Usage

build_freq_conf_fat(
  ps_input_flp_tibble,
  ps_sex,
  ps_marketing_channel,
  ps_flag_cow,
  pb_log,
  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_flag_cow

flag to select for cows or not (TRUE or FALSE)

pb_log

indicator whether logs should be produced

plogger

logger object

Value

result_matrix matrix with frequencies for carcass conformation and fat


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