R/join_by_colnames.R

Defines functions join_by_colnames

#' @keywords internal
#'
#' @importFrom magrittr %>%
#' @importFrom dplyr full_join
join_by_colnames <- function(x, y) {
    list(x, y) %>%
        lapply(colnames) %>%
        Reduce(c, .) %>%
        unique() %>%
        full_join(x, y, by = .)
}
waldronlab/HMP16SData documentation built on Nov. 4, 2024, 7:50 a.m.