Re: [R] Export summary from regression output

2012-10-24 Thread arun
HI, May be this helps: ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14)   trt <- c(4.81,4.17,4.41,3.59,5.87,3.83,6.03,4.89,4.32,4.69)   group <- gl(2,10,20, labels=c("Ctl","Trt"))   weight <- c(ctl, trt)   lm.D9 <- lm(weight ~ group) fun1<-function(x){ res<-c(past

Re: [R] Export summary from regression output

2012-10-23 Thread Brian Diggs
On 10/23/2012 5:59 AM, PIKAL Petr wrote: Hi section Arguments of write.table help page clearly says x the object to be written, preferably a matrix or data frame. If not, it is attempted to coerce x to a data frame. summary object from lm is highly structured list an AFAIK can not be easily co

Re: [R] Export summary from regression output

2012-10-23 Thread PIKAL Petr
Hi section Arguments of write.table help page clearly says x the object to be written, preferably a matrix or data frame. If not, it is attempted to coerce x to a data frame. summary object from lm is highly structured list an AFAIK can not be easily coerced to data frame. So either copy conso