View source: R/date_end_period.R
date_end_period | R Documentation |
Takes a period used in mandatory surveillance data and returns first date in the period.
date_end_period(x, period_type)
x |
A period, either string or numeric |
period_type |
A string, one of "fq", "cq" or "fyear6" |
A string in format dd/mm/yyyy
date_start_period
date_end_period(20154, "fq")
date_end_period(20154, "cq")
date_end_period(201516, "fyear6")
dat <- data.frame(x = c(20151, 20152, 20153, 20154))
date_end_period(dat$x, "fq")
date_end_period(dat$x, "cq")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.