clean_followups: Clean followup data

View source: R/clean_followups.R

clean_followupsR Documentation

Clean followup data

Description

Cleans and un-nests followup data which is returned from get_followups()

Usage

clean_followups(followups, contacts_address_history_clean, language_tokens)

Arguments

followups

A tibble with events data. Followup data is returned by get_followups().

contacts_address_history_clean

A tibble with cleaned address history data from contacts. Contacts data is returned by get_contacts() and cleaned by clean_contact_address_history().

Value

A tibble with cleaned followup data.

Examples

## Not run: 
url <- "https://MyGoDataServer.com/"
username <- "myemail@email.com"
password <- "mypassword"
outbreak_id <- "3b5554d7-2c19-41d0-b9af-475ad25a382b"

followups <- get_followups(
  url = url,
  username = username,
  password = password,
  outbreak_id = outbreak_id
)

contacts <- get_contacts(
  url = url,
  username = username,
  password = password,
  outbreak_id = outbreak_id
)

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

locations_clean <- clean_locations(locations = locations)

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

contacts_address_history_clean <- clean_contact_address_history(
  contacts = contacts,
  locations_clean = locations_clean,
  language_tokens = language_tokens
)

followups_clean <- clean_followups(
  followups = followups,
  contacts_address_history_clean = contacts_address_history_clean,
  language_tokens = language_tokens
)

## End(Not run)

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