Learn R Programming

bbmle (version 1.0.20)

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)

Arguments

x

a formula (call)

Value

a character vector of length 1

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
# NOT RUN {
as.character(y~x)
call.to.char(y~x)
# }

Run the code above in your browser using DataLab