getTime {hyd1d}R Documentation

Extract a WaterLevelDataFrame's slot time

Description

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

Usage

getTime(x)

## S4 method for signature '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").

See Also

setTime<–method

Examples

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


[Package hyd1d version 0.5.2 Index]