control | R Documentation |
A function to check if the user wants to download some traits from a certain database.
control(name_variable, dframe, DB)
name_variable |
name of the variable set up by tr8_config() |
dframe |
a dataframe containing traits definition (created by the tr8() function). |
DB |
name of the database to be used (eg. "Ecoflora") |
This function check whether the user has run the
tr8_config()
function and, in case he did, which
traits were selected (i.e. need to be downloaded by the tr8
function) for each database. These variables have the form
"res_NAMEDB" (eg. res_Biolflor
) and they contain the
"output" of a "gWidget::notebook" window. The values of
these variables can be accessed through the svalue
a vector of seleceted traits (if the variable was set
through the tr8_config()
function OR NULL
if
tr8_config()
was run, but no traits were chosen for
that database OR an empty vector if tr8_config()
was
not run.
Gionata Bocci <boccigionata@gmail.com>
tr8()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.