get_traits: Get Trait-data for SPEAR

Description Usage Arguments Details Value Note Author(s) See Also

View source: R/get_traits.R

Description

Download trait-data from SPEAR (http://www.systemecology.eu/spear/spear-calculator/).

Usage

1

Arguments

check

logical; should the database be checked if up-to-date?

Details

In order to minimize traffic on server trait-data is saved locally. get_traits() downloads the trait-data from server to a file 'traits.csv' in the working directory.

If the file already exists in the working directory a check is performed if the file is up-to-date with the database.

Value

a data.frame with the trait-database.

Note

Normally, get_traits() is not called separately and is the default in spear(). Therefore the trait-table is downloaded once into the workspace and checked if up-to-date with the web-server when spear() is used.

'check' should be set to FALSE if working offline (since the check require an internet connection)

Author(s)

Eduard Szoecs eduardszoecs@gmail.com

See Also

spear


EDiLD/rspear documentation built on May 6, 2019, 3:05 p.m.