search for: dredgeit

Displaying 1 result from an estimated 1 matches for "dredgeit".

Did you mean: dodgeit
2013 Jan 18
1
Object created within a function disappears after the function is run
...ingsAsFactors=FALSE); traitsclean<-traits birdhabitat<-merge(birdmatrix,habitatmatrix,by="SARBASINYEAR") #merge bird and habitat data data<-birdhabitat; data$SAR<-substr(data$SARBASINYEAR,1,3) #convenience; create SAR variable #make a FUNCTION to combine variables into models dredgeit<-function(lm1){ dd1<-dredge(lm1,eval=FALSE) #create all possible combinations dd1<-gsub("formula = ","",dd1,fixed=TRUE) #delete characters dd1<-gsub(" + 1","",dd1,fixed=TRUE) #delete characters dd1#inspect model formulae } lm1<-lm(data$BiRich....