search for: sumcrop

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

Did you mean: sumcol
2005 Feb 03
1
Efficient selection and alteration of dataframe records
...="pspp", by.y="tspp") #4 define summary dataframe sumdf sumdf=data.frame(s.n=NA, s.S=NA, s.crop=NA) #reset all data to raw data. #b. calculate crop in plotdft with all species present plotdft$crop=plotdft$width*exp(-2.0+2.42*(log(plotdft$dim))) #c. sum crop sumcrop=sum(plotdft$crop) #d. write n, S, crop to sumdf sumdflength=length(sumdf$s.n) sumdf[sumdflength+1,1]=1; sumdf[sumdflength+1,2]=Smax; sumdf[sumdflength+1,3]=sumcrop; #6. SPECIES DELETION LOOP. This is the species deletion loop. #a. repeat from n=1:Smax-1 (S=Smax-n...