[R] Error in terms.default()

ripley@stats.ox.ac.uk ripley at stats.ox.ac.uk
Thu Mar 6 20:37:51 CET 2003


R and S-PLUS handle terms very differently.

If this were a formula, terms would dispatch to term.formula, so
presumably it is not.  Do you need an as.formula() call?

On Thu, 6 Mar 2003, Daniel A. Powers wrote:

> I am working with some SPlus code and get the following error
> 
> Error in terms.default(formula, data = data) :
>         no terms component
> 
> Can someone point me to a fix? The pasted formula looks ok
> when printed during the procedure.

You need to read carefully how terms() works in R, from the help page and 
from examples in the sources.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list