as.character.formula: Converts a formula to character

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/as.character.formula.R

Description

Convers a formula to character representaion

Usage

1
2
## 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.

Value

A character vector

Author(s)

Christopher Brown

See Also

deparse

Examples

1
2
3
4
5
6
  as.character( y ~ mx +  b )

## The function is currently defined as
function(x)
  Reduce( paste, deparse(x) )
  

formula.tools documentation built on May 2, 2019, 1:45 p.m.