pe_add_regions: Add the Corresponding Region for each Project by way of...

View source: R/00_load_export_utils.R

pe_add_regionsR Documentation

Add the Corresponding Region for each Project by way of Geocode matching

Description

This function adds a Regions column to the provider_extras data frame by matching geocodes. It uses data from the hud_load function from the clarity.looker package to retrieve region information.

Usage

pe_add_regions(
  provider_extras,
  Regions = clarity.looker::hud_load("Regions", dirs$public),
  dirs
)

Arguments

provider_extras

(data.frame) An extra from the Program Descriptor model. See ?clarity_api for retrieving a Look with this info.

Regions

(data.frame) Data frame containing region information. Defaults to loading from clarity.looker::hud_load("Regions", dirs$public).

dirs

(list) List of directories used in the function, including dirs$public.

Value

(data.frame) provider_extras with an additional Regions column.


COHHIO/Rm_data documentation built on Dec. 9, 2024, 2:10 p.m.