get_ref_fishbase: Extract the bibliographic info from www.fishbase.org.

Description Usage Arguments Value Examples

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

Description

Extract bibliographic information for growth parameters (linf, k, t0) from www.fishbase.org

Usage

1
get_ref_fishbase(ref_id, mirror = "se")

Arguments

ref_id

vector of reference ids.

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
df <- get_growth_fishbase("Scyliorhinus canicula")

df$data_ref[df$data_ref == df$main_ref] <- NA
df <- tidyr::gather_(data = df,
                     key_col = "ref_type",
                     value_col = "ref_id",
                     gather_cols = c("main_ref", "data_ref"), na.rm = TRUE)
ref_id <- unique(df$ref_id)
get_ref_fishbase(ref_id)

## End(Not run)

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