[R] Help with merge function

2013-04-26 Thread Catarina Ferreira
Dear all, I'm trying to merge 2 dataframes, but I'm not being entirely successful and I can't understand why. Dataframe x1 State_prov Shape_name bob2009 bob 2010 bob2011 Nova ScotiaAnnapolis 0 0 1 Nova ScotiaAntigonish0

Re: [R] Help with merge function

2013-04-26 Thread Catarina Ferreira
name", "bob2009", > "bob2010", "coy2009"), class = "data.frame", row.names = c(NA, > -3L)) > > x3 <- merge(x1, x2, all.y = TRUE) > > > > Note also that since by = intersect(names(x1), names(x2)), you really > don't

[R] Get average model after dredge function ran in a loop

2013-12-10 Thread Catarina Ferreira
Dear all I'm a beginner in R and I'm trying to get the final model after I run the dredge function for 10 times (with a loop): ###Building the Model Coy.glm0<-glm(pa ~ shrub + snowdep + tree + bio5 + bio6 + bio12 + log(human+1), data=Coy.pa, family=binomial) summary(Coy.glm0) install.packages('