control: control

View source: R/control.R

controlR Documentation

control

Description

A function to check if the user wants to download some traits from a certain database.

Usage

control(name_variable, dframe, DB)

Arguments

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")

Details

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

Value

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.

Author(s)

Gionata Bocci <boccigionata@gmail.com>

See Also

tr8()


GioBo/TR8 documentation built on Sept. 28, 2024, 2:35 p.m.