clean_relationships: Cleans relationship data

View source: R/clean_relationships.R

clean_relationshipsR Documentation

Cleans relationship data

Description

Cleans and un-nests relationship data. Relationship data is returned by get_relationships().

Usage

clean_relationships(relationships, language_tokens)

Arguments

relationships

A tibble of relationship data. Relationship data is returned by get_relationships().

Value

A tibble with clean relationship data.

Examples

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

relationships <- get_relationships(
  url = url,
  username = username,
  password = password,
  outbreak_id = outbreak_id
)

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

clean_relationships <- clean_relationships(
  relationships,
  language_tokens = language_tokens
)

## End(Not run)

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