formatDives: formatDives

View source: R/format.R

formatDivesR Documentation

formatDives

Description

Function that takes a subset of variables and do some recoding and dive removal for filtering purposes

Usage

formatDives(Data)

Arguments

Data

an object of class daata.frame

Details

This functions keeps the variables needed to apply the subsequents procedures of this package. It will make the Date of class POSIXct if supplied as a factor and will make the ref (id of the tag) of type character. It also sorts the rows by ref and by Date. It also removes any duplicated dive and those not reaching 100 meter depth and shorter than 300 seconds.

Value

a data.frame containing a subset of the variables needed to keep processing the data.frame

Examples

data(ele)
formatDives(ele)

farcego/slimmingDive documentation built on April 14, 2024, 8:24 a.m.