clean_case_vax_history: Cleans vaccination data from case data

View source: R/clean_case_vax_history.R

clean_case_vax_historyR Documentation

Cleans vaccination data from case data

Description

Cleans and un-nests vaccination history, where vaccination is complete, from case data. Case data is returned from get_cases().

Usage

clean_case_vax_history(cases, language_tokens)

Arguments

cases

A tibble with address information from cases data.

language_tokens

A tibble of language tokens returned by get_language_tokens() to translate the string tokens in the data.

Value

A tibble with cleaned and un-nested vaccination history data.

Examples

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

cases <- get_cases(
  url = url,
  username = username,
  password = password,
  outbreak_id = outbreak_id
)

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

vax_history <- clean_case_vax_history(
  cases = cases,
  language_tokens = language_tokens
)

## End(Not run)

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