marinetrophicindex: Get MTI as a data frame or chart

Description Usage Arguments Value Examples

View source: R/marinetrophicindex.R

Description

Get MTI as a data frame or chart

Usage

1
2
3
4
5
6
7
8
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

1
2
3
4
5
6
7
8
## Not run: 
marinetrophicindex(region = "eez", id = 76)
marinetrophicindex("eez", 76, type="fib_index")
if (interactive()) {
 marinetrophicindex("eez", 76, chart=TRUE)
}

## End(Not run)

ropensci/seaaroundus documentation built on March 4, 2020, 9:02 a.m.