call.to.char: Convert calls to character

View source: R/mle.R

call.to.charR 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)

bbolker/bbmle documentation built on Dec. 12, 2023, 9:07 a.m.