Learn R Programming

TR8 (version 0.9.23)

Tr8-class: Class "Tr8"

Description

Class Tr8 is used as a "containter" for all other functions and classes needed to download traits data from various databases

Arguments

Objects from the Class

Objects can be created by calls of the form new("Tr8", ...).

Slots

species_list:

Object of class "vector" list of species for which traits data are to be searched

results:

Object of class "data.frame" dataframe containing scraped traits

not_valid:

Object of class "vector" species whose name were not present in the Ecoflora database

double_names:

Object of class "vector" species for which more than one name was found

Methods

bib

signature(.Object = "Tr8"): method to get bibliographic references for the downloaded data

issues

signature(.Object = "Tr8"): method to underline 'problematic' species

extract_traits

signature(object = "Tr8"): method to extract the object@results dataframe from a Tr8 object

lookup

signature(.Object = "Tr8"): a method to show brief reference for the downloaded data

issues

signature(.Object = "Tr8"): method to print species names for which data retrieval was problematic (e.g. double entries in remote databases).

%% \item{show}{\code{signature(object = "Tr8")}: pretty printig for the %% retrieved data}

Author

Gionata Bocci boccigionata@gmail.com

See Also

tr8

Examples

Run this code
if (FALSE) {
## the bib() methods let the user have the exact
## bibliographic citations to be used for the
## retrieved data

## download some trait data for Abies alba

My_traits<-tr8(species_list=c("Abies alba"),download_list=c("life_form_P"))

## See what citations should be used for the data
## bib(My_traits)

## to see a short explanation for the codes used to identify
## the traits use lookup()

lookup(My_traits)
}

Run the code above in your browser using DataLab