R/as.character.formula.R

Defines functions as.character.formula

## Written by Mercedeh Movassagh <mercedeh@ds.dfci.harvard.edu>, Aug 2020

# convert formula to character (same as private formula.tools:::as.character.formula)
as.character.formula <- function(x, ...) {
    # see formula.tools:::as.character.formula
    form <- paste(deparse(x), collapse = " ")
    form <- gsub("\\s+", " ", form, perl = FALSE)
    return(form)
}
Mercedeh66/mirTarRnaSeq documentation built on April 14, 2023, 6:49 a.m.