Function to style a table with threat status on the horizontal rows and protection level on the vertical columns, with number of ecosystems or taxa that share those categories, with total and percentage çolumns added
Usage
nba_tbl_comb(DF, GROUP, THR, PRO, FILE = c("spatial", "csv"))Arguments
- DF
The data frame that contains the data
- GROUP
The column that contains the name of the variable (the ecosystems or taxa names)
- THR
The column name of the threat statuses
- PRO
The column name of the protection levels
- FILE
An indication if the input file is a map (spatial file with a geom column) or a csv/ normal dataframe.
