contacts_per_case: Counts the number of contacts per case from relationship data

View source: R/contacts_per_case.R

contacts_per_caseR Documentation

Counts the number of contacts 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

contacts_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 contacts associated to each source 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)

contacts_per_case <- contacts_per_case(clean_relationships)

## End(Not run)

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