Coerce a WaterLevelDataFrame to a data.frame
Source:R/WaterLevelDataFrame-methods.R
as.data.frame.WaterLevelDataFrame.Rd
A function to coerce an object of class
WaterLevelDataFrame to a data.frame
.
Usage
# S3 method for class 'WaterLevelDataFrame'
as.data.frame(x, ...)
Arguments
- x
an object of class WaterLevelDataFrame.
- ...
additional arguments to be passed to the internally used
as.data.frame
-function.
Value
as.data.frame
returns a data.frame
.
Examples
wldf <- WaterLevelDataFrame(river = "Elbe",
time = as.POSIXct("2016-12-21"),
station = seq(257, 262, 0.1))
df <- as.data.frame(wldf)