R/tidyHtmlTable_helpers_innerJoinByCommonCols.r

Defines functions innerJoinByCommonCols

Documented in innerJoinByCommonCols

#' A simple function for joining two tables by their
#' intersected columns
#'
#' @param x `data.frame`
#' @param y `data.frame`
#' @return `data.frame`
innerJoinByCommonCols <- function(x, y) {
  by <- intersect(names(x), names(y))
  dplyr::inner_join(x, y, by = by)
}
gforge/htmlTable documentation built on Nov. 4, 2023, 12:05 a.m.