bwg_get: Get data from bwg

View source: R/species.R

bwg_getR Documentation

Get data from bwg

Description

At present this is very general, since perhaps we will only ever get whole tables?

Usage

bwg_get(dataname, opts = NULL, to_dataframe = TRUE)

Arguments

dataname

the name of the dataset you want (e.g. "species")

opts

list of named options for the different API routes.

to_dataframe

logical, should the response be converted to a data frame? Default is TRUE. If FALSE, the raw content of the response is returned as text.

Value

a data.frame containing one whole table.


SrivastavaLab/bwgdata documentation built on June 10, 2025, 7:09 a.m.