Displaying 1 result from an estimated 1 matches for "sumdflength".
Did you mean:
sum_length
2005 Feb 03
1
Efficient selection and alteration of dataframe records
...aframe 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+1)
for(n in 1:(Smax-1)) {
S=Smax-n+1;
#b. remo...