C_input: Estimate carbon input

View source: R/C_input.R

C_inputR Documentation

Estimate carbon input

Description

C_input() estimates the carbon (C) input into the soil system per year of a management_df.

Usage

C_input(var_MGMT_data, extended.output = FALSE)

Arguments

var_MGMT_data

a management_df that contains the management information

extended.output

an optional logical value.

  • If FALSE, C input values are aggregated by year.

  • If TRUE, a tibble with daily resolution is returned.

  • Default value is FALSE

Details

The function takes a management_df as input and returns a C input values per year in the management_df.

Alternatively, it can return a tibble with all managememnt operations and their respective C input values.

The functions calculates the C input with the C_input_crops(), C_input_cover_crops() and CN_input_amendments() functions.

Value

  • By default, a tibble with C input values (total and by category) by year is returned.

  • If extended.output = TRUE, a tibble with all management operations and their respecitve C inputs is returned.

See Also

  • calculate_indicators() to calculate all management indicators for a management_df

  • calculate_C_input_tibble() a helper function that calculates the C input tibble

  • C_input_crops() to calculate C input for crops

  • C_input_cover_crops() to calculate C input for cover crops

  • CN_input_amendments() to calculate C (and N) inputs for organic amendments

Examples

#example that returns annual C input values
C_input(EXAMPLE_data)

#example that returns a tibble with all operations that have a C input
C_input(EXAMPLE_data, extended.output = TRUE)


SoilManageR documentation built on June 8, 2025, 9:36 p.m.