Learn R Programming

realTimeSurv (version 1.0)

get_day: Get day of the week

Description

Returns a data frame with day of the week covariates

Usage

get_day(df)

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab