add_newborns: Add newborns to a cow_table

Description Usage Arguments Value

View source: R/main_function.R

Description

Add newborns to a cow_table

Usage

1
add_newborns(cows, area_table, i, max_cow_id, newborn_table, param_sim)

Arguments

cows

See cow_table.

area_table

See area_table.

i

The number of months from the start of the simulation.

max_cow_id

The ID of a cow at the last non-empty row of cows.

newborn_table

A result of setup_newborn_table().

param_sim

A list which combined param, a result of process_param() and a result of calc_param().

Value

A list consisted of two elements: cows and max_cow_id.


fmsan51/blvibmjp documentation built on Sept. 2, 2020, 9:04 p.m.