R/fbind.R

Defines functions fbind

Documented in fbind

#' Combine two factors
#'
#' @param a `factor`
#' @param b `factor`
#'
#' @return `factor`, combine `a` and `b` including levels
#' @export
#'
#' @examples
#' fbind(iris$Species, Puromycin$state)
fbind <- function(a, b){
  forcats::fct_c(a, b)
}
kmaurer/foofactors documentation built on May 7, 2019, 8:22 a.m.