Learn R Programming

Andromeda (version 0.6.7)

restoreDate: Restore dates

Description

Restores dates that were converted by Andromeda to numeric values back to dates.

Usage

restoreDate(x)

Value

A vector of type Date.

Arguments

x

A numeric vector representing dates.

See Also

restorePosixct()

Examples

Run this code
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 
#     
# 1 2000-01-01
# 2 2001-01-31
# 3 2004-12-31

close(andr)

Run the code above in your browser using DataLab