Description Usage Arguments Details Value Examples
The computation of nutrient fertilization plans requires a few atmospheric, crop, and soil variables to be shared among all soil analyses. Each nutrient fertilization plan requires specific variables, the functions checks whether these features have been filled in the appropriate variable list, for each specific nutrient.
1 | check_vars(vars = NULL, nutrient)
|
vars |
A list where atmospheric, crop, and soil variables needed are given, or |
nutrient |
One of "nitrogen", "phosphorus", "potassium" |
The data object are passed to appropriate fertplan
functions by demand_nutrient()
,
further information on variables, and their unit of measure can be found in
help pages and vignettes of the fertplan
package.
Variable list templates for variables:
Template for nitrogen nutrient list:
crop, The crop name to be sown, character
part, The part of interest of the crop (Frutti, Pianta, ...), character
crop_type, The crop type to be sown, character
expected_yield_kg_ha, Expected crop yield, integer
prev_crop, Soil clay content, character
texture, Soil texture (one of "Sandy", "Loam", "Clayey"), character
drainage_rate, Rate of drainage in soil (either "fast", "normal", "slow", "no drainage"), character
oct_jan_pr_mm, cumulative precipitation in mm in the 4 months-period October - January, integer
n_supply_prev_frt_kg_ha, Supply from organic fertilizations, integer
organic_fertilizer, Type of organic fertilizer used, character
years_ago * Time since last organic fertilization, integer
n_supply_atm_coeff, A ratio to correct the N from atmosphere, numeric
Template for phosphorus nutrient list:
crop, The crop name to be sown, character
part, The part of interest of the crop (Frutti, Pianta, ...), character
crop_class, The class of crop to be sown, character
expected_yield_kg_ha, Expected crop yield, integer
texture, Soil texture (one of "Sandy", "Loam", "Clayey"), character
soil_depth_cm, depth of soil tillage practise, integer
Template for potassium nutrient list:
crop, The crop name to be sown, character
part, The part of interest of the crop (Frutti, Pianta, ...), character
crop_class, The class of crop to be sown, character
expected_yield_kg_ha, Expected crop yield, integer
texture, Soil texture (one of "Sandy", "Loam", "Clayey"), character
soil_depth_cm, depth of soil tillage practise, integer
Note that the appropriate classes of the variables
needed for each specific nutrient may be
looked up by passing NULL
as vars
argument, like in
check_vars(NULL, "potassium")
.
A data.table
subset of the vars
list featuring only the specific
variables for the nutrient
given or, if vars
is NULL
a character vector of classes of the relevant variables for each specific
nutrient.
1 | check_vars(NULL, "potassium")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.