restoreDate: Restore dates

View source: R/Operations.R

restoreDateR 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

restorePosixct()

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)


Andromeda documentation built on Sept. 12, 2024, 7:41 a.m.