add_crop: Add a crop management object

Description Usage Arguments Examples

View source: R/add_mgmt.R

Description

To be used as an argument to the build_soil_input() function. Creates an object containing crop management information and checks it for correct format and values. Arguments should be vectors of matching length, or of length 1.

Usage

1
add_crop(crop, yield_tha, frac_remove, frac_renew)

Arguments

crop

A character vector indicating the crop type. See names(crop_fractions) for possible options.

yield_tha

A numeric vector indicating crop yield in tonnes fresh weight ha^-1.

frac_remove

A numeric vector indicating the fraction of crop residues removed, values between 0 and 1.

frac_renew

A numeric vector indicating the fraction of the crop renewed annually, values between 0 and 1. Equal to 1 for annual crops, 1 / renewal period in years for perennial crops.

Examples

1
2
3
4
add_crop(crop = c("wheat", "barley"),
         yield_tha = c(7.5, 8.1),
         frac_remove = c(0.3, 0.4),
         frac_renew = c(1, 1))

aj-sykes92/soilc.ipcc documentation built on March 19, 2021, 11:52 a.m.