GatherDataObjectInformation: Data Object Information

View source: R/DataObjectOverview.R

GatherDataObjectInformationR Documentation

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

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

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

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

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

## End(Not run)

ropensci/reol documentation built on May 18, 2022, 6:33 p.m.