averageCtds | R Documentation |
Average and list of CTD objects. This function will take all available data within all of the ctd objects and will average in pressure space. It takes all unique pressure values from all ctd objects, and then averages all availble data for each unique pressure values. Therefore, it's best if the data have already been vertically averaged.
averageCtds(x, bin = NULL, tolerance = NULL)
x |
a list of ctd objects |
bin |
an optional vector of numerical values of the center of the bin to average the data |
tolerance |
an optional vector of numerical values of the tolerance for the bin |
There are three different schemes for averaging based on which combination of bin
and tolerance
is supplied. If bin = tolerance = NULL
, then profiles are averaged by unique pressure values in all
of the ctd profiles. If bin
and tolerance
are supplied, then the data is averaged using the supplied
values such that intervals are closed on the left and open on the right. If bin
is supplied and tolerance = NULL
then the data is averaged by combining cut()
and split()
, and for consistency to other schemes the intervals
are closed on the left and open on the right.
a ctd object that has the same metadata and processing log as the supplied ctd object, but with bin-averaged data.
Chantelle Layton
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.