extract_trip: Function to extract periods of the TDR that correspond to...

Description Usage Arguments Value Examples

View source: R/extract_trip.R

Description

Function to extract periods of the TDR that correspond to time at sea

Usage

1
2
3
4
5
6
extract_trip(
  data = data,
  timeformat = timeformat,
  trip_start = trip_start,
  trip_end = trip_end
)

Arguments

data

your TDR data with at least these two columns: tStamp and Pressure

timeformat

the format of your data in your TDR data tStamp

trip_start

The period of time when the trip started. This data can be deduced from field observations or obtained from GPS.

trip_end

The period of time when the trip finished. This data can be deduced from field observations or obtained from GPS.

Value

Returns a object with less observations than in the original data. Only the periods between the data provided are returned.

Examples

1
2
3
4
t_format<-"%d-%m-%Y %H:%M:%S"
t_start<-"30-11-2018 20:43:24"
t_end<-"01-12-2018 20:16:19"
TDR_trip<-extract_trip(data=TDR_pressure,timeformat=t_format,trip_start=t_start,trip_end=t_end)

MiriamLL/spheniscus documentation built on Dec. 17, 2021, 4:17 a.m.