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.

Value

A character vector

Details

Coerces formula to a character by deparsing.

See also

Author

Christopher Brown

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>