chop.dive | R Documentation |
Extracts only part of a dive profile.
chop.dive(d, t0=0, t1=max(times.dive(d)))
d |
The dive. An object of class |
t0, t1 |
Elapsed times (in minutes) of the start and end of the period which should be extracted. |
The argument d
should be an object of class "dive"
representing a dive profile.
This command extracts the part of the dive
profile that starts at time t0
minutes and ends at
time t1
minutes, and returns it as
an object of class "dive"
. The clock is adjusted so that the
new dive profile starts at time 0
and ends at time t1-t0
.
Note that the resulting dive profile does not start and end at the surface:
the dive profile is
simply chopped off at elapsed time t1
. If you want the dive
to start and end at the surface, execute dive(chop.dive(d, t0, t1))
.
An object of class "dive"
starting
at time 0
and ending at time t1-t0
.
.
dive
d <- dive(c(30,20), c(5,5)) # fragment of dive up to 10 minutes chop.dive(d, 0, 10) # dive aborted at 10 minutes dive(chop.dive(d, 0, 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.