R/fbind.R

#' Combine two factors, including levels
#'
#' @param a `factor`
#' @param b `factor`
#'
#' @return `factor` combines the two factors, including levels.
#' @export
#'
#' @examples
#' fbind(iris$Species, Puromycin$state)

fbind <- function(a, b) {
  forcats::fct_c(a, b)
}
speegled/foofactors- documentation built on May 7, 2019, 8:23 a.m.