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)))
}
zhamel/foo documentation built on May 4, 2019, 10:15 p.m.