R/fbind.R

Defines functions fbind

Documented in fbind

#' Bind two factors
#'
#'Create a new factor from two smaller factors.
#'
#' @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)))
}

# Just putting a comment in here for purposes of exploring git functions.
trahelyk/foofactors documentation built on Dec. 23, 2021, 12:02 p.m.