View source: R/plant_diversity.R
plant_diversity | R Documentation |
Derives three indicators for plant diversity of a crop rotation based on management information (mainly sowing events).
plant_diversity(var_MGMT_data, start_year, end_year)
var_MGMT_data |
a 'management_df' with a management history |
start_year |
start year of the cropping sequence of interest |
end_year |
end year of the cropping sequence of interest |
For the function to work properly the species (or variety) must be mentioned
in the "product" column, and all sown species of mixtures must be
represented in a single row of the management_df
each.
The function calculates the crop diversity index (CDI
), the total
number of different species, and the Shannon index for all sown species.
The CDI
is calculated in the following way inspired by
\insertCiteTiemann_2015;textualSoilManageR:
CDI = \overline{S_{year}} * S_{rotation}
where \overline{S_{year}}
is the average number of sown species per
year and S_{rotation}
is the total number of different species
sown in the full crop rotation or cropping sequence.
The Shannon Index is calculated with the shannon_index()
function.
a tibble with three indicators for plant diversity
calculate_indicators()
to calculate all management indicators
for a management_df
shannon_index()
for more detail on the Shannon index
plant_diversity(EXAMPLE_data,2013,2020)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.