Compute site impact indicator
Usage
site_impact(
cube,
impact_data = NULL,
method = NULL,
trans = 1,
col_category = NULL,
col_species = NULL,
col_mechanism = NULL
)
Arguments
- cube
The data cube of class
sim_cube
orprocessed_cube
fromb3gbi::process_cube()
- impact_data
The dataframe of species impact which contains columns of
impact_category,
scientific_name
andimpact_mechanism
- method
The method of computing the indicator. The method used in the aggregation of within and across species in a site. The method can be precautionary, precautionary cumulative, mean, mean cumulative or cumulative.
- trans
Numeric. The method of transformation to convert the EICAT categories to numerical values. 1 converts ("MC", "MN", "MO", "MR", "MV") to (0,1,2,3,4) 2 converts ("MC", "MN", "MO", "MR", "MV") to (1,2,3,4,5) and 3 converts ("MC", "MN", "MO", "MR", "MV") to (1,10,100,1000,10000)
- col_category
The name of the column containing the impact categories. The first two letters each categories must be an EICAT short names (e.g "MC - Minimal concern")
- col_species
The name of the column containing species names
- col_mechanism
The name of the column containing mechanisms of impact
See also
Other Indicator function:
impact_indicator()
,
species_impact()
Examples
# define cube for taxa
acacia_cube <- taxa_cube(
taxa = taxa_Acacia,
region = southAfrica_sf,
res = 0.25,
first_year = 2010
)
siteImpact <- site_impact(
cube = acacia_cube,
impact_data = eicat_acacia,
method = "precautionary cumulative",
trans = 1
)