| 1 | to_yearmonth(date, format = "%Y%m")
 | 
| format: | A character string. If not specified, it will try "\item date:An  | 
A Date
convert an integer or character to year month .
Transforms year month to year month day Date object.
to_yearmonth(201801)
to_yearmonth('2018-11', format = '%Y-%m')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.