Skip to contents

Get ARMM Barangay level data masterlist from the Open Marawi Google Drive Database

Usage

marawi_get_armm(
  dataset = c("metadata", "demographics", "bgyfacilities", "conflict")
)

marawi_get_armm_all(tabular = TRUE)

Arguments

dataset

A string value from either "metadata", "demographics", "bgyfacilities", or "conflict" 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 ARMM directory of the Open Marawi Database.

Author

Ernest Guevarra

Examples

## Retrieve the metadata dataset of the ARMM directory in the Open Marawi
## database
marawi_get_armm(dataset = "metadata")
#> # A tibble: 95 × 8
#>    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_muni"     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_20… Population, as of 31 … alpha nume…
#>  8 Demographics               "Population_20… Population in 2010     alpha nume…
#>  9 Demographics               "Urban/Rural\n… Urban-rural classific… dummy/bina…
#> 10 Demographics               "mean_hhh_age"  Average age of househ… alpha nume…
#> # ℹ 85 more rows
#> # ℹ abbreviated name: ¹​`Broad Variable Categories`
#> # ℹ 4 more variables: `Data entry` <chr>, `Sheet name` <chr>, Remarks <chr>,
#> #   `Data source` <chr>
if (FALSE) marawi_get_armm_all()