productivity_indicator: Calculate average productivity

View source: R/productivity_indicator.R

productivity_indicatorR Documentation

Calculate average productivity

Description

Estimates estimates the relative yield of a cropping sequence per year. The function takes a management_df as input and returns a relative_yield value per year in the management_df. Alternatively, it can return a tibble with additional information on each crop. The productivity_indicator() calculates the relative yields with the relative_yield() function.

Usage

productivity_indicator(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, relative yields are aggregated by year.

  • If TRUE, a tibble with relative yield of each crop is returned.

  • Default value is FALSE

Value

  • By default, a tibble with relative yields by year is returned.

  • If extended.output = TRUE, a tibble with additional information is returned.

See Also

  • relative_yield() for caluclating relative yields

  • calculate_indicators() for calculating all soil management indicators

Examples

#example that returns annual relative yield values
productivity_indicator(EXAMPLE_data)

#example that returns a tibble with additional information
productivity_indicator(EXAMPLE_data, extended.output = TRUE)


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