leda_general | R Documentation |
.txt
files composing the
LEDA Traitbase
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.
##leda_general(url, skip_row, species, column, out_name)
url |
the url of the |
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 |
species |
Vector of plant species names |
column |
The name of the column containing the trait of interest in |
out_name |
A short name to be used as the trait name in the returned dataframe |
The function returns a dataframe containing the column of interest from the original .txt file.
Gionata Bocci boccigionata@gmail.com>
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.
tr8()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.