get_maturity_fishbase: Extract maturity parameters from http:://www.fishbase.se.

Description Usage Arguments Details Value Examples

View source: R/get-maturity-fishbase.R

Description

This function extracts values for maturity from http:://www.fishbase.se

Usage

1
get_maturity_fishbase(fish, mirror = "se")

Arguments

fish

Vector of fish species with genus and species information.

mirror

Character string defining the url mirror to use. Defaults to se. In case data extraction is slow use a different mirror. Try to avoid frequently used mirrors like uk or com.

Details

Before the actual extraction takes place fishbase IDs for every species are extracted using get_ids_fishbase. The IDs are needed to generate the urls later on.

Value

Dataframe with species, country, locality, linf and k.

Examples

1
2
3
4
5
6
7
## Not run: 
# For some reason the examples break with appveyor.
fish <- c("Gadus morhua", "Squalus acanthias")
df <- get_maturity_fishbase(fish)
head(df)

## End(Not run)

alketh/atlantistools documentation built on Oct. 30, 2021, 5:46 a.m.