get_haul_data: Get haul data from RACEBASE (R workflow)

View source: R/run_gapctd.R

get_haul_dataR Documentation

Get haul data from RACEBASE (R workflow)

Description

Retrieves vessel, cruise, haul, event times, locations, bottom depth, gear temperature, surface temperature, performance, haul type, and haul start time from racebase and race_data.

Usage

get_haul_data(
  channel,
  vessel,
  cruise,
  out_path = NULL,
  tzone = "America/Anchorage"
)

Arguments

channel

RODBC connection.

vessel

Vessel code as a 1L numeric vector.

cruise

Cruise code as a numeric vector (can include more than one).

out_path

Optional. Filepath for the output R data file (.rds).

tzone

Time zone for events and start_time in racebase/race_data tables.

Value

Returns a data.frame containing haul data. Also saves haul data to an rds file.

Author(s)

Sean Rohan and Cecilia O'Leary


afsc-gap-products/gapctd documentation built on March 5, 2025, 3:42 a.m.