[R] quick way to construct formula

From: Luke <jyzz88_at_gmail.com>
Date: Wed 29 Jun 2005 - 12:48:34 EST

Dear R users,

I have a data with 1000 variables named "x1", "x2", ..., "x1000", and I want to construct a formula like this format:


That is: the base variables followed by all interaction terms and all base feature log-transformations. I know I can use several paste functions to construct it. But is there any other handy way to do it?


R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Jun 29 12:54:47 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:06 EST