R/fbind.R

Defines functions fbind

Documented in fbind

#' Bind two factors
#'
#' Two factors are binded so that the result is also a factor.
#'
#' @param a factor
#' @param b factor
#'
#' @return factor
#' @export
#'
#' @examples
#' fbind(iris$Species[c(1, 51, 101)], PlantGrowth$group[c(1, 11, 21)])
fbind <- function(a, b) {
    factor(c(as.character(a), as.character(b)))
}
paljenczy/foofactors documentation built on May 5, 2019, 5:53 p.m.