add_breakpoints | R Documentation |
Add breakpoints to certain dates in a data set.
add_breakpoints(data, dates = as.Date(character(0)))
data |
A |
dates |
A vector of dates to use as breakpoints. |
A data.table with breakpoint
set to 1 on each of the specified
dates.
reported_cases <- add_breakpoints(example_confirmed, as.Date("2020-03-26"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.