check_management_df {SoilManageR}R Documentation

Check management_df for consitency

Description

The function checkes objects of the class management_df() for internal consistency. It formally checks the class and the column names. Additionally, the function checks if dates are consistently increasing and if all organic amendments, tillage and sowing devices and crops are in the relevant look-up-tables. Furthermore, the amount of organic amendments (<100t/ha) and N fertilizer (<100kgN/ha) application rates per event are checked. The depth of tillage operations are compared with the min and max depth from the STIR_value_LUT. Finally, the order of tillage, sowing and harvest operations are checked for plausibility (see details for more information).

Usage

check_management_df(var_MGMT_data)

Arguments

var_MGMT_data

an object of the management_df() class

Details

The order of tillage, sowing and harvest operations are checked with the following assumptions:

Additionally, there are exceptions for potato crops: "bedder" can be used after a "potato_planter" and "mulching" can be applied before a "potato_harvester"

Value

a test_report list (only returned if some tests failed)

See Also

Examples

#example input
check_management_df(EXAMPLE_data)

[Package SoilManageR version 1.0.1 Index]