staged_match_ctd: Given a cruise data frame of staged data with 'cruise_name'...

View source: R/merge.R

staged_match_ctdR Documentation

Given a cruise data frame of staged data with cruise_name generate a matching subset of the ctd data

Description

Given a cruise data frame of staged data with cruise_name generate a matching subset of the ctd data

Usage

staged_match_ctd(
  x = dplyr::filter(read_staged(), .data$cruise_name %in% c("PE9602", "HB1906")),
  ctd = read_ctd(),
  form = c("list", "tibble")[1]
)

Arguments

x

tibble of staged cruise data

ctd

tibble of ctd data

form

character, the form as a named 'list' (each element one data frame) or a 'tibble' where all results are bound in one table

Value

tibble of ctd data, possibly empty, for matches by cruise or a list of the same


BigelowLab/ecomon documentation built on Dec. 8, 2023, 9:21 p.m.