restorePosixct | R Documentation |
Restores datetimes that were converted by Andromeda to numeric values back to datetimes.
restorePosixct(x)
x |
A numeric vector representing timestamps |
A vector of type POSIXct
.
restoreDate()
myData <- data.frame(startTime = as.POSIXct(c("2000-01-01 10:00",
"2001-01-31 11:00",
"2004-12-31 12:00")))
andr <- andromeda(myData = myData)
andr$myData %>%
collect() %>%
mutate(startTime = restorePosixct(startTime))
# # A tibble: 3 x 1
# startTime
# <dttm>
# 1 2000-01-01 10:00:00
# 2 2001-01-31 11:00:00
# 3 2004-12-31 12:00:00
close(andr)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.