knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The goal of ubigeosperu is to have an easy way to get the peruvian ubigeos into R. The data has been collected from CONCYTEC's GitHub repository.
You can install the released version of ubigeosperu from CRAN with:
## This will work when the package is published into CRAN install.packages("ubigeosperu")
And the development version from GitHub with:
# install.packages("devtools") devtools::install_github("calderonsamuel/ubigeosperu")
This is a basic example which shows you how to solve a common problem:
library(ubigeosperu) library(dplyr)
ubigeosperu contains a single dataframe object containing the peruvian ubigeos codes.
dim(ubigeos)
The ubigeos dataset is a tibble.
ubigeos
You can access the tidy version and pipe it!
ubigeos_tidy %>% filter(lugar == "CHORRILLOS", nivel == "Distrito")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.