exposures_per_case: Counts the number of exposures per case from relationship...

View source: R/exposures_per_case.R

exposures_per_caseR Documentation

Counts the number of exposures per case from relationship data

Description

Uses cleaned relationship data to tally the number of contacts per case. Relationship data is returned by get_relationships() and cleaned by clean_relationships().

Usage

exposures_per_case(relationships_clean)

Arguments

relationships_clean

A tibble with the cleaned relationship data. Relationship data is returned by get_relationships() and cleaned by clean_relationships().

Value

A tibble with the number of exposures associated to each target person

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
)

clean_relationships <- clean_relationships(relationships)

exposures_per_case <- exposures_per_case(clean_relationships)

## End(Not run)

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