as.character.formula: Converts a formula to character

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

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) )
  

decisionpatterns/formula.tools documentation built on May 15, 2019, 1:56 a.m.