Convers a formula to character representaion
# S3 method for class 'formula'
as.character(x, ...)
Arguments
- x
formula object
- ...
further arguments passed to or from other methods.
Details
Coerces formula to a character by deparsing.
Examples
as.character( y ~ mx + b )
#> [1] "y ~ mx + b"
## The function is currently defined as
function(x)
Reduce( paste, deparse(x) )
#> function (x)
#> Reduce(paste, deparse(x))
#> <environment: 0x55d85bd96e08>