oc_get_countries | R Documentation |
Given a character vector of one or more countries, or a data frame of
countries returned from oc_browse
, this function retrieves data
related to those countries. The function can return projects, locations, or
descriptions.
oc_get_countries(country, type = c("projects", "locations", "descriptions"))
country |
A character vectory of country names or a data frame
returned from |
type |
The type of data to return: |
A data frame with the additional class oc_dataframe
.
oc_get_countries("germany", type= "projects") library(dplyr) oc_browse(type = "countries") %>% filter(label == "Turkey") %>% oc_get_countries(type = "locations")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.