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
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
# 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
3 matches
Mail list logo