merge_stacks: merge tagstacks

View source: R/merge_stacks.R

merge_stacksR Documentation

merge tagstacks

Description

sensibily merge two tagstacks together with overlapping sets of tags

Usage

merge_stacks(
  target_stack,
  source_stack,
  by = "Ptt",
  remove_duplicates = FALSE,
  identify_original = FALSE,
  target_lab = "target",
  source_lab = "source"
)

Arguments

by

the name of the sattag slot to base the merge on. Should be "Ptt" or "DeployID". Defaults to "Ptt".

remove_duplicates

a boolean defaults to FALSE. If TRUE, duplicated rows of data will be retained in the output tagstack.

identify_original

a boolean defaults to FALSE. If TRUE, a character 'original' column will be added to each sattag stream indicating the origin of each row with a character identifier specified by target_lab or source_lab.

target_lab

a string to identify data that came from the target tagstack.

source_lab

a string to identify data that came from the source tagstack.

target

a tagstack, the target stack

source

a tagstack, the source stack

Value

an S4 object of class tagstack.


williamcioffi/sattagutils documentation built on June 3, 2022, 10:21 a.m.