R: Converts a formula to character

as.character.formula {formula.tools} | R Documentation

## Converts a formula to character

### Description

Convers a formula to character representaion

### Usage

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

      as.character( y ~ mx +  b )

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

[Package formula.tools version 1.7.1 Index]