View source: R/DataObjectOverview.R
GatherDataObjectInformation | R Documentation |
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.
GatherDataObjectInformation(MyEOL) CombineDataObjectInformation(MyEOLs, verbose = TRUE) DataObjectOverview(MyEOLs, verbose = TRUE)
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 |
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.
GetRichnessScores
GetCommonNames
GetIUCNStat
GetReferences
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.