#' Bind two factors togother
#'
#' @param a factor
#' @param b factor
#'
#' @return a new combined factor
#' @export
#' @examples
#' fbind(iris$Species[c(1, 51, 101)], PlantGrowth$group[c(1, 11, 21)])
fbind <- function(a, b) {
assertthat::assert_that(is.atomic(a))
assertthat::assert_that(is.atomic(b))
factor(c(as.character(a), as.character(b)))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.