restorePosixct: Restore timestamps

View source: R/Operations.R

restorePosixctR Documentation

Restore timestamps

Description

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

Usage

restorePosixct(x)

Arguments

x

A numeric vector representing timestamps

Value

A vector of type POSIXct.

See Also

restoreDate()

Examples

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)


Andromeda documentation built on Nov. 24, 2023, 5:10 p.m.