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 Oct. 26, 2023, 5:42 a.m.