get_day: Get day of the week

Description Usage Arguments Value Examples

View source: R/analysis_functions.R

Description

Returns a data frame with day of the week covariates

Usage

1

Arguments

df

A data frame containing columns with the address (either "Address" or "address") and date (either "Date" or "date") of the cases. Typically the same data frame used in a call to geocode_st

Value

A data frame with value for time period and day of the week.

Examples

1
2
3
tmp <- data.frame(address=c("Buckingham palace","Big ben, Westminster","Marble arch, London"),
                  date = c("01/01/2020","02/01/2020","03/01/2020"))
get_day(tmp)

realTimeSurv documentation built on May 18, 2021, 9:07 a.m.