calculateEle101: Calculate Element 101 (Use for Animals)

Description Usage Arguments Value

Description

The amount used for animal feed is computed using a very simple formula: (Element 101) = (Ratio 101) * (Total Supply) / 100. Essentially, the amount used for animals is computed as a simple ratio of the total supply. This function performs that calculation.

Usage

1
calculateEle101(stotal, data, aupusParam)

Arguments

stotal

The column name of data corresponding to the total supply.

data

The AUPUS node dataset, typically as produced by buildNodes.

aupusParam

A list of running parameters to be used in pulling the data. Typically, this is generated from getAupusParameter (see that function for a description of the required elements).

Value

This function returns an integer vector containing the row numbers of observations which were updated. However, it also has a side effect: rows within the passed data.table ("data") have element 101's value and symbol updated.


SWS-Methodology/faoswsAupus documentation built on May 9, 2019, 11:45 a.m.