Re: [R] Extract summary stats to table

2010-10-06 Thread nathan pellegrin
and store as data frame dfmi <- data.frame( Formula=sapply(mods, FUN=function(x){ paste(formula(x)[2], formula(x)[1], formula(x)[-c(1,2)], collapse=" ") } ), AIC=sapply(mods, FUN="AIC") ) #write the data frame to a comma-separated file write.table(dfmi, file=&qu

Re: [R] conditional assignment of colors in xyplot()

2010-09-30 Thread nathan pellegrin
Thank you, Deepayan, for the answer - and for creating amazingly helpful tools! Thanks also to Jim Lemon who pointed out a typo in the code: S2 < .025 should read S2 > .025, Nathan On Thu, Sep 30, 2010 at 5:21 AM, Deepayan Sarkar wrote: > On Mon, Sep 27, 2010 at 7:11 AM, nathan

[R] conditional assignment of colors in xyplot()

2010-09-27 Thread nathan pellegrin
# Dear R Community, # I have this data frame: df1 <- data.frame( F1 = factor( c( rep("D1",12),rep("D2",12),rep("D3",12) ) ), F2 = factor( rep( rep( paste("O",1:6,sep=""), rep(2,6) ), 3) ), F3 = factor( rep( c("V1","V2"), 18 ) ), S1 = c(8.840955e-02,2.546822e-01,7.5