Convert from excel date number to R Date type
convertToDate(x, origin = "1900-01-01", ...)
x | A vector of integers |
---|---|
origin | date. Default value is for Windows Excel 2010 |
... | additional parameters passed to as.Date() |
Excel stores dates as number of days from some origin day
#> [1] "2014-04-21" "2014-04-22" "2014-04-23" "2014-04-24" "2014-04-25" #> [6] NA#> [1] "2014-04-21" "2014-04-22" NA "2014-04-24"