swh:1:snp:13ceaf33a0cf03b54a9c83ec2c853f3c4226f6da
Tip revision: c5ab0f0d83c162db9a614a6f8cc507f8a9190546 authored by Ben Bolker on 14 September 2011, 00:00:00 UTC
version 1.0.3
version 1.0.3
Tip revision: c5ab0f0
call.to.char.Rd
\name{call.to.char}
\alias{call.to.char}
\title{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{
\item{x}{a formula (call)}
}
\details{
It would be nice if \code{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{Ben Bolker}
\examples{
as.character(y~x)
call.to.char(y~x)
}
\keyword{misc}