getRiver {hyd1d} | R Documentation |
Extract a WaterLevelDataFrame's slot river
Description
A function to extract the slot river
from an object
of class WaterLevelDataFrame.
Usage
getRiver(x)
## S4 method for signature 'WaterLevelDataFrame'
getRiver(x)
Arguments
x |
an object of class WaterLevelDataFrame. |
Value
The function above extracts the slot river
and returns an object of class character
.
See Also
Examples
wldf <- WaterLevelDataFrame(river = "Elbe",
time = as.POSIXct("2016-12-21"),
station = seq(257, 262, 0.1))
getRiver(wldf)
[Package hyd1d version 0.5.2 Index]