Find a Study
Return the identifiers of studies that match given properties
studies_find_studies( property = NULL, value = NULL, verbose = FALSE, exact = FALSE, detailed = TRUE, ... )
property |
The property to be searched on (character) |
value |
The property value to be searched on (character) |
verbose |
Should the output include all metadata (logical
default |
exact |
Should exact matching be used? (logical, default
|
detailed |
If |
... |
additional arguments to customize the API request (see
|
If detailed=TRUE, the function returns a data frame
listing the study id (study_ids), the number of trees
associated with this study (n_trees), the tree ids (at
most 5) associated with the studies (tree_ids), the
tree id that is a candidate for the synthetic tree if any
(candidate), the year of publication of the study
(study_year), the title of the publication for the
study (title), and the DOI (Digital Object Identifier)
for the study (study_doi).
If detailed=FALSE, the function returns a data frame
with a single column containing the study identifiers.
studies_properties which lists properties
against which the studies can be
searched. list_trees that returns a list for all
tree ids associated with a study.
## Not run:
## To match a study for which the identifier is already known
one_study <- studies_find_studies(property="ot:studyId", value="pg_719")
list_trees(one_study)
## To find studies pertaining to Mammals
mammals <- studies_find_studies(property="ot:focalCladeOTTTaxonName",
value="mammalia")
## To extract the tree identifiers for each of the studies
list_trees(mammals)
## ... or for a given study
list_trees(mammals, "ot_308")
## Just the identifiers without other information about the studies
mammals <- studies_find_studies(property="ot:focalCladeOTTTaxonName",
value="mammalia", detailed=FALSE)
## End(Not run)Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.