s-news
[Top] [All Lists]

Re: as.character problem

To: Kyle Roberts <kroberts@unt.edu>, chuck@insightful.com, s-news@lists.biostat.wustl.edu
Subject: Re: as.character problem
From: "Richard M. Heiberger" <rmh@temple.edu>
Date: Wed, 10 Nov 2004 19:38:33 -0500
You need to explicitly convert the input character string to formula
with as.formula.

> x <- 1:10
> y <- rnorm(10)
> xyplot("y ~ x")
Problem in setup.2d.trellis(formula, data = data, gro..: invalid formula
> xyplot(as.formula("y ~ x"))
> 

<Prev in Thread] Current Thread [Next in Thread>