clean_cases | R Documentation |
Cleans and un-nests case data. Case data is returned by
get_cases()
.
clean_cases(
cases,
cases_address_history_clean,
cases_vacc_history_clean,
cases_dateranges_history_clean,
language_tokens
)
cases |
A |
language_tokens |
A tibble of language tokens returned by
|
locations_clean |
A tibble with cleaned locations data. Locations data
is returned by |
A tibble
containing the cleaned case data.
## 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"
)
locations <- get_locations(
url = url,
username = username,
password = password
)
locations_clean <- clean_locations(locations = locations)
# other cleaned data required for `clean_cases()`
cases_vacc_history_clean <- clean_case_vax_history(
cases = cases,
language_tokens = language_tokens
)
cases_address_history_clean <- clean_case_address_history(
cases = cases,
locations_clean = locations_clean,
language_tokens = language_tokens
)
cases_dateranges_history_clean <- clean_case_med_history(
cases = cases,
language_tokens = language_tokens
)
cases_clean <- clean_cases(
cases = cases,
cases_address_history_clean = cases_address_history_clean,
cases_vacc_history_clean = cases_vacc_history_clean,
cases_dateranges_history_clean = cases_dateranges_history_clean,
language_tokens = language_tokens
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.