[.WaterLevelDataFrame {hyd1d} | R Documentation |
Extract or replace subsets of the .Data
slot of an object
of class WaterLevelDataFrame.
## S4 method for signature 'WaterLevelDataFrame'
x[i, j]
## S4 replacement method for signature 'WaterLevelDataFrame,ANY,ANY,data.frame'
x[i, j] <- value
x |
object of class WaterLevelDataFrame. |
i , j |
elements to extract or replace. For |
value |
A suitable replacement value: it will be repeated a whole number
of times if necessary and it may be coerced: see the Coercion section. If
|
For details see [.data.frame
.
A new object of class WaterLevelDataFrame is returned.
Since the extraction or replacement acts only on the .Data
-slot of
the object, all other slots remain unchanged.
wldf <- WaterLevelDataFrame(river = "Elbe",
time = as.POSIXct("2016-12-21"),
station = seq(257, 262, 0.1))
wldf <- wldf[which(wldf$station >= 259 & wldf$station <= 261), ]