[Rd] long formulas in terms() (PR#873)

jerome@stat.ubc.ca jerome@stat.ubc.ca
Thu, 8 Mar 2001 22:30:07 +0100 (MET)


Full_Name: Jerome Asselin
Version: 1.2.2
OS: Windows 95
Submission from: (NULL) (142.52.81.1)



I need to use the "terms()" function to decompose a formula.
The function seems to work for small formulas, but not for long formulas.

##############################
#The following works!
form <- cbind(log(inflowd1),log(inflowd2),log(inflowd3),
    log(inflowd4)) ~ precip*I(Tmax^2)
terms(form)

#But enlarging the left-hand side of the formula causes an error!
form <- cbind(log(inflowd1),log(inflowd2),log(inflowd3),
    log(inflowd4),log(inflowd5),log(inflowd6)) ~ precip*I(Tmax^2)
terms(form) # ERROR
##############################

I noticed that when the left-hand side term of the formula is
too large to be written on one line, an error occurs in terms().
However, increasing the line width by "options(width=200)" did
not solve the problem.

platform i386-pc-mingw32
arch     x86            
os       Win32          
system   x86, Win32     
status                  
major    1              
minor    2.2            
year     2001           
month    02             
day      26             
language R              


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._