R/fbind.R

Defines functions fbind

Documented in fbind

#' Bind two factors together
#'
#' @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)))
}
jokagyeman/foofactors documentation built on May 19, 2019, 5:18 p.m.