get_diet_fishbase: Extract reference for diet information from...

Description Usage Arguments Value Examples

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

Description

This function extracts reference for diet information from http:://www.fishbase.se

Usage

1
get_diet_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.

Value

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

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# For some reason the examples break with appveyor.
fish <- c("Gadus morhua", "Merlangius merlangus", "Maurolicus muelleri")
diet <- get_diet_fishbase(fish)

fish <- c("Gadus morhua", "Merlangius merlangus", "Ammodytes marinus")
diet <- get_diet_fishbase(fish)

## End(Not run)

atlantistools documentation built on Aug. 16, 2017, 9:05 a.m.