R: Convert calls to character

call.to.char {bbmle} | R Documentation

## Convert calls to character

### Description

Utility function (hack) to convert calls such as y~x to their character equivalent

### Usage

    call.to.char(x)

### Arguments

`x` | a formula (call)

### Details

It would be nice if `as.character(y~x)` gave "y~x", but it doesn't, so this hack achieves the same goal

### Value

a character vector of length 1

### Author(s)

Ben Bolker

### Examples

    as.character(y~x)
    call.to.char(y~x)

[Package bbmle version 1.0.19 Index]