makeSection {oce} | R Documentation |
Combine a series of CTD profiles together to create a section.
This function is deprecated, meaning that it will be removed two
CRAN releases from now. Please use as.section
instead.
makeSection(item, ...)
item |
either (1) a |
... |
one or more |
The stations are stored in order of the station identification number
(stored as metadata$station
in the ctd object), if possible. The
ctd
stations must share identical pressure values; use
sectionGrid
to do that.
An object of class
section
.
Dan Kelley
See section-class
for information on section objects and
functions that deal with them.
library(oce) data(ctd) ctd2 <- ctd ctd2[["temperature"]] <- ctd[["temperature"]] + 0.5 ctd2[["salinity"]] <- ctd[["salinity"]] + 0.1 ctd2[["longitude"]] <- ctd[["longitude"]] + 0.01 section <- makeSection(ctd, ctd2) summary(section) # Below is how to create a section from well-named CSV files # that contain consecutive stations ## Not run: plot(sectionSmooth(sectionGrid(makeSection(dir("*.csv"))))) ## End(Not run)