getRiver: Extract a WaterLevelDataFrame's slot river

getRiverR 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

setRiver<–method

Examples

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


hyd1d documentation built on Dec. 3, 2025, 9:06 a.m.