set_dives: Generate Dive column

View source: R/utils.R

set_divesR Documentation

Generate Dive column

Description

Associate dives based on start and end timestamps.

Usage

set_dives(x, dive_ranges)

Arguments

x

'track' object.

dive_ranges

A data.frame or data.table with columns:

  • Dive - Name of the dive.

  • start - timestamp of the start of the dive, same format as the Time used to create the track.

  • end - timestamp of the end of the dive, same format as start.

Details

This function will overwrite the dives column based on timestamps of start and end. Any point not contained in the interval of the new dives will be removed. This function is useful when working with tracks that are not separated by dives originally, of if you wish to crop a dive in multiple transects.


correapvf/trackROV documentation built on Nov. 19, 2024, 9:04 p.m.