calculate_risk_score: Calculate the risk score

Description Usage Arguments Value

View source: R/functions.R

Description

Calculate the risk score for each POI

Usage

1
2
3
4
5
6
calculate_risk_score(
  poi = poi,
  open_hours = open_hours,
  daily = daily,
  hourly = hourly
)

Arguments

poi

SafeGraph POI dataset, plus city/community and infection rate of each POI (the output of function calculate_infection_rate)

open_hours

The dataset containing open hours from Monday to Sunday for each POI

daily

Processed daily visits dataset, output of the function "daily_process"

hourly

Processed houly visits dataset, output of the function "hourly_process"

Value

The final risk score dataframe


Yueyang-Li-Elfa/COVIDrisk documentation built on July 25, 2020, 12:48 a.m.