seaaroundus (version 1.2.0)

marinetrophicindex: Get MTI as a data frame or chart

Description

Get MTI as a data frame or chart

Usage

marinetrophicindex(region, id, chart = FALSE, type = "mean_trophic_level",
  transferefficiency = 0.1, ...)

Arguments

region

(character) region type. one of: eez, lme, rfmo, highseas, fao, eez-bordering, fishing-entity, taxon, or global

id

(character/integer/numeric) region id. depends on what region is specified. See regions for details

chart

boolean to return a chart versus a data frame Default: FALSE

type

MTI data set ("mean_trophic_level", "fib_index", or "rmti") Default: "mean_trophic_level"

transferefficiency

float used for FiB index input Default: 0.1

...

curl options passed on to crul::HttpClient

Value

data frame (or chart) with MTI data

Examples

Run this code
# NOT RUN {
marinetrophicindex(region = "eez", id = 76)
marinetrophicindex("eez", 76, type="fib_index")
marinetrophicindex("eez", 76, type="fib_index", transferefficiency=0.25)
# }
# NOT RUN {
marinetrophicindex("eez", 76, chart=TRUE)
# }

Run the code above in your browser using DataCamp Workspace