baad_data: Load the BAAD database

Description Usage Arguments Details Examples

Description

Load data from the Biomass and Allometry Database.

Usage

1
2
3

Arguments

version

Version to load. Verion "1.0.0" corresponds to the version published in Ecology in 2015. Other valid versions are "0.1.0", "0.2.0" and "0.9.0" which are stored on github but are of historical interest only.

path

Optional path in which to store the data. If omitted we use rappdirs to generate a reasonable path.

Details

The first time this is run for a given version, this function will download the Biomass and Allometry Database (BAAD) from github, using numbered versions), unpack the resulting zip file and load the csv files. This might take a few seconds to a minute. Subsequent calls will be considerably quicker because we cache both the downloaded data and the result of reading the csv. Subsequent calls after that will be essentially instantaneous.

The function baad_delete deletes all traces of downloaded BAAD data if a version is not given, or a specific version if that is listed.

Examples

1
2
3
4
5
## Not run: 
baad <- baad_data()
head(baad$data)

## End(Not run)

traitecoevo/baad.data documentation built on May 31, 2019, 7:42 p.m.