Learn R Programming

Reol (version 1.55)

DataObjectOverview: Data Object Information

Description

These functions gather information about the number of kinds of data objects. For example, it will tell you that there are 3 gifs 12 jpgs, and 34 text objects.

Usage

GatherDataObjectInformation(MyEOL) CombineDataObjectInformation(MyEOLs, verbose=TRUE) DataObjectOverview(MyEOLs, verbose=TRUE)

Arguments

MyEOL
A single EOL file or R object
MyEOLs
A vector of filenames or a list of XMLs for downloaded EOL pages
verbose
An optional print statement while combining

Value

GatherDataObjectInformation will return information from one single EOL file all of the data objects and their associated accession info. CombineDataObjectInformation will combine the data gathered singly into a huge matrix. Printing the results from either of these functions may hang up R or cause memory issues, so it isnt recommended (though you can pull of pieces of it). DataObjectOverview returns a data frame where each row is a single taxon and columns are a type of data object.

See Also

GetRichnessScores GetCommonNames GetIUCNStat GetReferences

Examples

Run this code
data(MyEOLs)
DataObjectOverview(MyEOLs[1], verbose=FALSE)
## Not run: DataObjectOverview(MyEOLs, verbose=FALSE)

#Data from the first data object from the first EOL page on the list
## Not run: GatherDataObjectInformation(MyEOLs[1])[1,]

#See searchable variables for data objects using names and view contents
## Not run: names(GatherDataObjectInformation(MyEOLs[1]))
## Not run: GatherDataObjectInformation(MyEOLs[1])$source

#One way to get all the english text back from a single EOL file
## Not run: 
#   DOI <- GatherDataObjectInformation(MyEOLs[1])
#   text <- which(which(DOI$mimeType == "text/html") 
#     "en"))
#   DOI$description[text]
# ## End(Not run)

Run the code above in your browser using DataLab