pre_process_ew_input: Pre-processing the input-parameter-file of ECOWEIGHT

View source: R/pre_processing.R

pre_process_ew_inputR Documentation

Pre-processing the input-parameter-file of ECOWEIGHT

Description

The program package ECOWEIGHT (C Programs for Calculating Economic Weights in Livestock) need input parameter files. This function processed different functions to prepare the input parameter files.

Usage

pre_process_ew_input(
  ps_sirebreed,
  ps_dambreed,
  ps_prodsystew,
  ps_marketchannel,
  ps_path_directory2create,
  ps_input_file_literature,
  ps_input_file_par,
  ps_input_file_35,
  ps_input_file_36,
  ps_input_file_testedbulls,
  ps_input_file_purchasedreplacementheifers,
  ps_input_file_calving_statement,
  ps_input_file_calving,
  ps_start_date,
  ps_end_date,
  ps_input_file_progeny_flp_statement,
  ps_input_file_flp,
  ps_input_file_calf,
  ps_input_file_flp_carcass_matrix_statement,
  ps_input_file_price_cow,
  ps_input_file_price_bull,
  ps_input_file_price_heifer,
  ps_input_file_price_calf,
  ps_input_file_ped,
  pb_log,
  plogger = NULL
)

Arguments

ps_sirebreed

sire breed

ps_dambreed

dam breed

ps_prodsystew

production system build up as option in ECOWEIGHT

ps_marketchannel

market channel

ps_path_directory2create

path of the directory that will be created

ps_input_file_literature

path to file with input coming from literature for the input-parameter-file for ECOWEIGHT

ps_input_file_par

path to file with input as parameter for each scenanario for the input-parameter-file for ECOWEIGHT

ps_input_file_35

path to file with input for file 35 for the input-parameter-file for ECOWEIGHT

ps_input_file_36

path to file with input for file 36 for the input-parameter-file for ECOWEIGHT

ps_input_file_testedbulls

path to file with input for ProdSyst 1 (tested bulls) for the input-parameter-file for ECOWEIGHT

ps_input_file_purchasedreplacementheifers

path to file with input for ProdSyst 3 (purchased replacement heifers) for the input-parameter-file for ECOWEIGHT

ps_input_file_calving_statement

path to file with statement based on calving for the input-parameter-file for ECOWEIGHT

ps_input_file_calving

path to file with input coming from calving for the input-parameter-file for ECOWEIGHT

ps_start_date

setting the start of the date to filter in the data

ps_end_date

setting the end of the date to filter in the data

ps_input_file_progeny_flp_statement

path to file with statement based on carcass for the input-parameter-file for ECOWEIGHT

ps_input_file_flp

path to file with input coming from carcass for the input-parameter-file for ECOWEIGHT

ps_input_file_calf

path to file with input coming from calf price data for the input-parameter-file for ECOWEIGHT

ps_input_file_flp_carcass_matrix_statement

path to file with statement based on carcass frequency and price for the input-parameter-file for ECOWEIGHT

ps_input_file_price_cow

path to file with price for cows

ps_input_file_price_bull

path to file with price for bulls

ps_input_file_price_heifer

path to file with price for heifers

ps_input_file_price_calf

path to file with price for calf

ps_input_file_ped

path to pedigree file

pb_log

indicator whether logs should be produced

plogger

logger object


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