clean_locations: Cleans location data

View source: R/clean_locations.R

clean_locationsR Documentation

Cleans location data

Description

Rearrange via joins to get into more usable hierarchy format, these can then be joined to cases, contacts, etc for further analysis

Usage

clean_locations(locations, language_tokens)

Arguments

locations

A tibble containing locations data. This is the data returned from get_locations()

Value

A tibble containing the cleaned and rearranged location data.

Examples

## Not run: 
url <- "https://MyGoDataServer.com/"
username <- "myemail@email.com"
password <- "mypassword"

locations <- get_locations(
  url = url,
  username = username,
  password = password
)

language_tokens <- get_language_tokens(
  url = url,
  username = username,
  password = password,
  language = "english_us"
)

clean_locations(locations = locations, language_tokens = language_tokens)

## End(Not run)

WorldHealthOrganization/godataR documentation built on May 21, 2023, 11:30 a.m.