knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

ubigeosperu

Project Status CRAN status

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.

Installation

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")

Example

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")


calderonsamuel/ubigeosperu documentation built on April 3, 2020, 5:22 a.m.