add_yearday | R Documentation |
Add yearday and year columns to a data.frame
add_yearday(data, date_col, datetime = F, keep_date_col = T)
data: |
a data.frame with a date or datetime column |
date_col: |
fa quoted name of the date or datetime column |
datetime: |
should the date_col be parsed as a datetime? |
keep_date_col: |
should the parsed date_col be kept? |
A data.frame with yearday and year columns
add_yearday(data.frame(today()))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.