R/s3-merge-soma-adat.R

Defines functions merge.soma_adat

#' @importFrom lifecycle deprecate_stop
#' @export
merge.soma_adat <- function(x, y, by = intersect(names(x), names(y)),
                            by.x = by, by.y = by, all = FALSE,
                            all.x = all, all.y = all, sort = TRUE,
                            suffixes = c(".x", ".y"), nu.dups = TRUE,
                            incomparables = NULL, ...) {
  # redirect to use `dplyr` alternatives
  call <- match.call()
  call[[1L]] <- str2lang("dplyr::left_join")
  deprecate_stop(
    "6.0.0", I("Using `merge()` on a `soma_adat`"),
    I("any of the `dplyr::*_join()` alternatives"),
    details = paste0("Perhaps ", .code(deparse(call)), "?")
  )
}

Try the SomaDataIO package in your browser

Any scripts or data that you put into this service are public.

SomaDataIO documentation built on April 4, 2025, 2:14 a.m.