get_smarter_samples | R Documentation |
Fetch SMARTER REST API samples endpoint and returns results in a dataframe.
get_smarter_samples(species, query = list())
species |
a smarter species ("Goat", "Sheep") |
query |
a |
Returns a dataframe with selected samples
Samples endpoint supports additional parameters when making queries.
Additional parameters need to be passed as list
using the query
parameter. For example, to get all the "foreground" samples you need to
provide list(type="foreground")
as query
parameter.
Endpoint supports a lot of parameters and some of them can be provided
multiple times
See
Swagger Samples endpoint for more information about the samples endpoint
italian_sheeps <- get_smarter_samples(
"Sheep",
query = list(country = "Italy")
)
merino_sheeps <- get_smarter_samples("Sheep", query = list(breed = "Merino"))
selected_goats <- get_smarter_samples(
"Goat",
query = list(country = "Italy", breed_code = "ORO", breed_code = "GAR")
)
## Not run:
foreground_goats <- get_smarter_samples(
"Goat",
query = list(type = "foreground")
)
all_sheep_samples <- get_smarter_samples("Sheep")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.