R/factorize.R

#' Factorize
#'
#' Coerce all columns in the object to `factor` (i.e. `stringsAsFactors`).
#'
#' @export
#' @inheritParams AcidRoxygen::params
#'
#' @seealso [encode()] for run-length encoding (Rle) approach.
#'
#' @return Modified object.
#' All columns will be coerced to `factor`.
#'
#' @examples
#' showMethods("factorize")
setGeneric(
    name = "factorize",
    def = function(object, ...) {
        standardGeneric("factorize")
    }
)
acidgenomics/AcidGenerics documentation built on April 9, 2024, 1:29 a.m.