restoreDate {Andromeda} | R Documentation |
Restore dates
Description
Restores dates that were converted by Andromeda to numeric values back to dates.
Usage
restoreDate(x)
Arguments
x |
A numeric vector representing dates. |
Value
A vector of type Date
.
See Also
Examples
myData <- data.frame(startDate = as.Date(c("2000-01-01", "2001-01-31", "2004-12-31")))
andr <- andromeda(myData = myData)
andr$myData %>%
collect() %>%
mutate(startDate = restoreDate(startDate))
# # A tibble: 3 x 1
# startDate
# <date>
# 1 2000-01-01
# 2 2001-01-31
# 3 2004-12-31
close(andr)
[Package Andromeda version 0.6.6 Index]