View source: R/get_wgfbit_data1.R
get_wgfbit_data1 | R Documentation |
Download a data.frame of surface and subsurface swept area ratio by c-square for a given ICES ecoregion, year and gear code.
get_wgfbit_data1(
ecoregion,
year,
fishing_category = NULL,
benthis_metier = NULL,
datacall = NULL,
convert2sf = FALSE
)
ecoregion |
ICES ecoregion |
year |
which year to select |
fishing_category |
optional gear category ("Otter", "Dredge") |
benthis_metier |
optional benthis metier ("SDN_DMF") |
datacall |
integer year giving which data call year to inquire about. If NULL returns the a summary of the most recent approved data. |
convert2sf |
logical, default FALSE, should an simple features object
be returned if the |
fishing_category and benthis_metier may not both be supplied, if neither are supplied the total is calculated.
a data.frame with a WKT column for the c-square polygons
## Not run:
# requires authorization
data1 <- get_wgfbit_data1("Celtic Seas", 2021, benthis_metier = "OT_DMF", convert2sf = TRUE)
plot(data1["total_weight"], border = NA, logz = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.