Description Usage Arguments Value Author(s) See Also Examples
This function take a chron object x and extract required data
1 | convert.datecodes(x, y)
|
|
= a chron date object |
|
= the value to be extracted x, acceptable values include 'chron', 'year','month','day','week','julian','julian.ref.2000','tripcode' |
z
= the requested date part
unknown, <unknown>@dfo-mpo.gc.ca
Other date functions: chron2datestamp
,
date_picker
, dayofyear
,
get.day
, get_day
1 2 3 4 5 | t=Sys.Date()
convert.datecodes(t,'year')
[1] 2016
convert.datecodes(t,'week')
[1] 25
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.