Subsetting WaterLevelDataFrames
Source:R/WaterLevelDataFrame-methods.R
subset.WaterLevelDataFrame.Rd
Returns subsets of WaterLevelDataFrames which meet conditions.
Usage
# S3 method for class 'WaterLevelDataFrame'
subset(x, subset, select, drop = FALSE, ...)
Arguments
- x
object of class WaterLevelDataFrame.
- subset
logical expression indicating elements or rows to keep: missing values are taken as false.
- select
expression, indicating columns to select from a data frame.
- drop
passed on to [ indexing operator.
- ...
further arguments to be passed to or from other methods.
Value
An object similar to x, containing just the selected rows and columns. All other slots of the WaterLevelDataFrame remain unchanged.
Examples
wldf <- WaterLevelDataFrame(river = "Elbe",
time = as.POSIXct("2016-12-21"),
station = seq(257, 262, 0.1))
wldf <- subset(wldf, station >= 258 & station <= 261)