Nitrogen from previous crop residues
Source:R/calc_N_from_crop_residues.R
nitrogen_from_previous_crop_residues.RdEstimates the amount of nitrogen (N) available from residues of a previous crop.
Usage
nitrogen_from_previous_crop_residues(
previous_crop = "Winter cereals straw removal",
e.table = NFert::e.table
)Arguments
- previous_crop
The name of the previous crop. This must match a value in the
previous_cropcolumn of thee.table.- e.table
A data frame containing the nitrogen values (in kg/ha) for different previous crops. It should have at least two columns:
previous_crop(character) andN(numeric). The default isNFert::e.table.
Details
If the value in the
e.tableis negative, the function returns 0 (as negative N contribution from residues is not meaningful).If there is no matching entry for
previous_cropin thee.table, the function returnsNAto indicate missing data.
Examples
E <- nitrogen_from_previous_crop_residues(previous_crop = "Winter cereals straw removal")
print(E)
#> [1] -10