date_type | R Documentation |
Transform dates in "%Y%m%d" format, i.e. with date formats in that order but with arbitrary or no separators, to a specified date format.
date_type(date, type)
date |
A date in "%Y%m%d" format. |
type |
Specifies the format that the date should be returned in, using standard R date types. |
A character object.
date_type("2012-12-31", "%Y") # returns 2012
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.