dateConv | R Documentation |
Since data imported from Excel or simply manipulated within R often changes
date and time data to numeric, dateConv
converts dates from decimal
numbers to Date.
dateConv(x, dataSource = "Excel")
x |
A numeric string |
dataSource |
Either "Excel" (default), "Unix" or "R" depending on where the data are coming from. Excel data have an origin of Dec. 30, 1899 whereas Unix and R data have an origin of Jan. 1, 1970. |
Returns a date object
dateConv(43252)
# "2018-06-01"
dateConv(18526, dataSource = "R")
# "2020-09-21"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.