Learn R Programming

treebase (version 0.0-6)

get_study_id: return the study.id from the search results.

Description

get_study_id is deprecated, and now can be performed more easily using phylo_metadata and oai_metadata search functions.

Usage

get_study_id(search_results)

Arguments

search_results
the output of download_metadata, or a subset thereof

Value

  • the study id

Details

this function is commonly used to get trees corresponding to the metadata search.

Examples

Run this code
all <- download_metadata("", by="all")

nature <- sapply(all, function(x) length(grep("Nature", x$publisher))>0)
science <- sapply(all, function(x) length(grep("^Science$", x$publisher))>0)
s <- treebase:::get_study_id( all[nature] )

Run the code above in your browser using DataLab