leda_general: Function which takes care of downloading the '.txt' files...

View source: R/leda_general.R

leda_generalR Documentation

Function which takes care of downloading the .txt files composing the LEDA Traitbase

Description

Takes care of dowloading the required .txt files and extract the trait (column of the table) of interest and return a dataframe with requested species' names as rows and LEDA traits as columns.

Usage

##leda_general(url, skip_row, species, column, out_name)

Arguments

url

the url of the txt file

skip_row

the number of the first rows of the file which should be left out (they contain information such as the SQL query needed to generate the file, but are of no use for the TR8 package)

species

Vector of plant species names

column

The name of the column containing the trait of interest in txt file

out_name

A short name to be used as the trait name in the returned dataframe

Value

The function returns a dataframe containing the column of interest from the original .txt file.

Author(s)

Gionata Bocci boccigionata@gmail.com>

References

Please cite the following reference any time you use data retrieved from the LEDA traitbase (citation reported at http://www.leda-traitbase.org/LEDAportal/citation.jsp):

Kleyer, M., Bekker, R.M., Knevel, I.C., Bakker, J.P, Thompson, K., Sonnenschein, M., Poschlod, P., Van Groenendael, J.M., Klimes, L., Klimesova, J., Klotz, S., Rusch, G.M., Hermy, M., Adriaens, D., Boedeltje, G., Bossuyt, B., Dannemann, A., Endels, P., Götzenberger, L., Hodgson, J.G., Jackel, A-K., Kühn, I., Kunzmann, D., Ozinga, W.A., Römermann, C., Stadler, M., Schlegelmilch, J., Steendam, H.J., Tackenberg, O., Wilmann, B., Cornelissen, J.H.C., Eriksson, O., Garnier, E., Peco, B. (2008): The LEDA Traitbase: A database of life-history traits of Northwest European flora. Journal of Ecology 96: 1266-1274.

See Also

tr8()

Examples

## Not run: 
age_of_first_flowering<-leda_general(url="age
   skip_row =4, column="age of first flowering", out_name="age_first_flowering",
   species=species)

## End(Not run)

GioBo/TR8 documentation built on June 16, 2022, 9:10 p.m.