fetch_data | R Documentation |
This function retrieves the raw data from a Google spreadsheet and format them.
fetch_data(keep_geometry = FALSE)
keep_geometry |
whether or not to keep a geometry column storing the polygons associated with each country/territory (default = |
a tibble with the raw data
## Not run: ## Here is how we created the data stored in this package: data_rangers <- fetch_data(keep_geometry = FALSE) data_rangers_with_geo <- fetch_data(keep_geometry = TRUE) write.csv2(data_rangers, file = "inst/extdata/raw_data/data_rangers.csv", row.names = FALSE) if (require(usethis)) { usethis::use_data(data_rangers, overwrite = TRUE) usethis::use_data(data_rangers_with_geo, overwrite = TRUE) } ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.