[.WaterLevelDataFrame {hyd1d} | R Documentation |
Extract or replace parts of a WaterLevelDataFrame
Description
Extract or replace subsets of the .Data
slot of an object
of class WaterLevelDataFrame.
Usage
## S4 method for signature 'WaterLevelDataFrame'
x[i, j]
## S4 replacement method for signature 'WaterLevelDataFrame,ANY,ANY,data.frame'
x[i, j] <- value
Arguments
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
|
Details
For details see [.data.frame
.
Value
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.
See Also
Examples
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), ]
[Package hyd1d version 0.5.2 Index]