Description Usage Format Details Note See Also
area_table is a data.table to manage areas (barns, paddocks, hatches, etc.) in a farm.
Users must specify one area_table consisted of following items before starting a simulation.
1 2 3 |
An object of class data.table (inherits from data.frame) with 1 rows and 3 columns.
An object of class character of length 3.
area_id (integer): Area ID.
area_type ("free"/"tie"/"outside"/"hatch"/"pasture"): Type of a area. Specify one of "free" (hatch, freebarn, free-stall, etc.), "tie" (tie-stall), "outside" (paddock or rangeland, etc.), "hatch" or "pasture" (yotaku).
capacity (list consisted of numeric): Max number of cows to be kept in the area. Inf is set if you specify NA. capacity must be set if area_type is "tie"; otherwise optional.
If area_type is "free" or "outside": a numeric or NA.
If area_type is "tie": a numeric vector whose length is equal to the number of lanes in the area and each elements indicates the number of chambers in a lane.
If area_type is "hatch": only NA is allowed.
Several parameters are calculated by setup_area_table and added to a area_table as attribute variables. Such values are intenended to be touched only by simulation functions and not by users.
capacity: Max number of cows can be kept in a area.
tie_stall: area_ids of tie-stall areas.
cow_table tie_stall_table movement_table rp_table
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.