overlap: Restrict two time series to only the overlapping dates (only...

View source: R/overlap.R

overlapR Documentation

Restrict two time series to only the overlapping dates (only years for now)

Description

TODO Extend to all the classes of pacea objects, and make it work on non pacea objects also. ##'

Usage

overlap(obj_1, obj_2, region = "SOG")

Arguments

obj_1

data.frame first time series

obj_2

data.frame second time series

region

character corresponding the region to be used for herring-related objects (of class 'pacea_recruitment_herring' or 'pacea_biomass_herring')

Value

tibble with first column 'year' and the rest being the columns of 'obj_1' and 'obj_2' restricted to the overlapping years

Author(s)

Andrew Edwards

Examples

## Not run: 
overlap(hake_recruitment, bi)
overlap(herring_spawning_biomass,

## End(Not run)

pbs-assess/PACea documentation built on April 17, 2025, 11:36 p.m.