Learn R Programming

treebase (version 0.0-6)

phylo_metadata: Search the PhyloWS metadata

Description

Search the PhyloWS metadata

Usage

phylo_metadata(x = c("Study.id", "Tree.id", "kind", "type", "quality", "ntaxa"),
    metadata = NULL, ...)

Arguments

x
one of "Study.ids", "Tree.ids", "kind", "type", "quality", "ntaxa"
metadata
returned from search_treebase function. if not specified will download latest copy of PhyloWS metadata from treebase. Pass in search results value during repeated calls to speed function runtime substantially
...
additional arguments to search_treebase

Value

  • a list of the values matching the query

Examples

Run this code
# calls will work without a metadata object, but require longer to download data
     kind <- treebase:::phylo_metadata("kind")
     type <- phylo_metadata("type")
     table(kind, type)
     # but are much faster if the data object is provided, see cache_treebase():
     data(treebase)
     kind <- treebase:::phylo_metadata("kind", metadata=treebase)
     type <- treebase:::phylo_metadata("type", metadata=treebase)
     table(kind, type)

Run the code above in your browser using DataLab