View source: R/CompressRecord.R
CompressRecord | R Documentation |
Linearly interpolate given data onto a compressed depth scale.
CompressRecord(depth, rec, stretch)
depth |
numeric vector woth the original depth scale of |
rec |
numeric vector of proxy values; must be of same length as
|
stretch |
numeric value of the amount of compression of the original
depth scale in the same units as |
The compressed depth scale is calculated by reducing the maximum depth of
depth
by the amount of stretch
and dividing the new depth
scale into n
equal bins, where n
is the length of
depth
. The proxy values on the compressed depth scale are found by
linear interpolation of the original values using approx
.
a list with two components:
depth: numeric vector of length depth
with the compressed
depth scale.
rec: numeric vector of length depth
with the proxy values on
the compressed depth scale.
Thomas Münch
approx
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.