| get_smarter_breeds | R Documentation |
Fetch SMARTER REST API breeds endpoint and returns results in a dataframe.
get_smarter_breeds(query = list())
query |
a |
Returns a dataframe with selected breeds
Breeds 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 "Sheep" breeds you need to provide
list(species="Sheep") as query parameter. Endpoint supports
query by breed code and name. In addition, you can search
using a pattern through the search parameter.
See
Swagger Breeds endpoint for more information about the breeds endpoint
selected_breed <- get_smarter_breeds(query = list(code = "TEX"))
selected_breeds <- get_smarter_breeds(query = list(search = "mer"))
## Not run:
all_breeds <- get_smarter_breeds()
sheep_breeds <- get_smarter_breeds(query = list(species = "Sheep"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.