Skip to contents

Get Lanao del Sur Barangay level data masterlist from the Open Marawi Google Drive Database

Usage

marawi_get_lanao(
  dataset = c("metadata", "demographics", "bgyfacilities", "estab", "modetranspo",
    "conflict", "privateschools", "health")
)

marawi_get_lanao_all(tabular = TRUE)

Arguments

dataset

A string value from either "metadata", "demographics", "facilities", "establishment", "mode_transport", "conflict", "private_schools", or "health" specifying the masterlist data to retrieve. If not specified, will default to "metadata".

tabular

Logical. Should output be flattened into a single data.frame? Default is TRUE. If FALSE, output is a list of data.frames for each sheet in the masterlist Excel file.

Value

A tibble or a list of tibbles of the specified masterlist dataset available in the Lanao del Sur directory of the Open Marawi Database.

Author

Ernest Guevarra

Examples

## Retrieve the metadata dataset of the Lanao del Sur directory in the Open
## Marawi database
marawi_get_lanao(dataset = "metadata")
#> # A tibble: 201 × 9
#>    Broad Variable Categorie…¹ `Variable name` `Variable description` `Data type`
#>    <chr>                      <chr>           <chr>                  <chr>      
#>  1 Demographics               PSGC_prov       Philippine Statistica… alpha nume…
#>  2 Demographics               Province        Province name          alpha nume…
#>  3 Demographics               PSGC_mun        Philippine Statistica… alpha nume…
#>  4 Demographics               Municipality    Municipality or City … alpha nume…
#>  5 Demographics               PSGC_bgy        Philippine Statistica… alpha nume…
#>  6 Demographics               Barangay        Barangay name          alpha nume…
#>  7 Demographics               Population_2015 Population, as of 31 … alpha nume…
#>  8 Demographics               Population_2010 Population in 2010     alpha nume…
#>  9 Demographics               Urban_rural     Urban-rural classific… dummy/bina…
#> 10 Demographics               mean_hhh_age    Average age of househ… alpha nume…
#> # ℹ 191 more rows
#> # ℹ abbreviated name: ¹​`Broad Variable Categories`
#> # ℹ 5 more variables: `Data entry` <chr>, `Sheet name` <chr>, Remarks <chr>,
#> #   `Year covered` <chr>, `Data source` <chr>
if (FALSE) marawi_get_lanao_all()