View source: R/utility_tools.R
episem | R Documentation |
Find to which epidemiological week belongs a given day
episem(x, format = "%Y-%m-%d", separa = "", retorna = "YW")
separa |
symbol between year and week |
retorna |
What should be return, if epidemiological year and week ('YW'), epi. year only ('Y') or epi. week only ('W'). Default: 'YW'. |
date |
date to be converted (class Date) |
epidemiological week or year. If separa = ”, the output is numeric; otherwise is a character.
Oswaldo Cruz
episem(x= as.Date("2018-12-31", format="%Y-%m-%d"))
episem(x= as.Date("2015-01-01", format="%Y-%m-%d"), separa='-')
episem(x= as.Date("2015-01-01", format="%Y-%m-%d"), retorna='Y')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.