R/fbind.R

Defines functions fbind

Documented in fbind

#' Function to concatenate two factors.
#'
#'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)))
}
FreekManders/Freekfoofactors documentation built on April 7, 2020, 12:47 a.m.