Skip to contents

A function to extract the slot time from an object of class WaterLevelDataFrame.

Usage

getTime(x)

# S4 method for class 'WaterLevelDataFrame'
getTime(x)

Arguments

x

an object of class WaterLevelDataFrame.

Value

The function above extracts the slot time and returns an object of type c("POSIXct", "POSIXt").

Examples

wldf <- WaterLevelDataFrame(river   = "Elbe",
                            time    = as.POSIXct("2016-12-21"),
                            station = seq(257, 262, 0.1))
getTime(wldf)
#> [1] "2016-12-21 CET"