bbmle (version 1.0.25.1)

call.to.char: Convert calls to character

Description

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

Usage

call.to.char(x)

Value

a character vector of length 1

Arguments

x

a formula (call)

Author

Ben Bolker

Details

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

Examples

Run this code
as.character(y~x)
call.to.char(y~x)

Run the code above in your browser using DataLab