R/fbind.R

Defines functions fbind

Documented in fbind

#' Bind two factors
#'
#' Create a new factor from two existing factors, where the new factor's levels
#' are the union of the levels of the input factors.
#'
#' @param a
#' @param b
#'
#' @return
#' @export
#'
#' @examples
fbind <- function(a, b) {
  factor(c(as.character(a), as.character(b)))
}
spedunkler/foofactors documentation built on Dec. 23, 2021, 4:26 a.m.