Last chance! 50% off unlimited learning
Sale ends in
## S3 method for class 'oce':
subset(x, subset, indices=NULL, debug=getOption("oceDebug"), ...)
oce
object.data
portion of
x
. See section
objects).oce
object.subset.data.frame
, but it is more limited because it works by
individualized inspection of x
depending on its class. Only one
independent variable may be used in subset
in any call to the
function, which means that repeated calls will be necessary to, subset
based on more than one independent variable (e.g. time and distance).window.oce
provides a simpler, but less powerful,
way to subset data.library(oce)
# CTD data
data(ctd)
plot(ctd)
plot(subset.oce(ctd, pressure>10))
# ADP example, subsetted by time and distance
data(adp)
adpNear <- subset.oce(adp, distance < 10)
# Note that the data may be accessed directly, as below
adpNearEarly <- subset.oce(adpNear, time < mean(adpNear[["time"]]))
plot(adpNearEarly)
Run the code above in your browser using DataLab