search for: sba2

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

Did you mean: sba
2011 Jul 21
1
nested loop for
...n R but I can't find the solution. I have a data.frame with an unique ID for individuals and unique ID for different stands, for each indiviadual I have a dbh record and a SBA (stand basal area) field. Pma<-rep (1:40) P<-seq(1,4, 1) Plot<-rep(P,10) dbh2<-rnorm(40, mean=200, sd=5) SBA2<-rnorm(40, mean=10, sd=1) As I want to calculate the basal area of larger trees in each stand (i.e., the compare tree to tree the dbh and for each individual sum the stand basal area of larger trees) BAL2<-rep(0,length(Pma)) aa<-rep(0,length(Pma)) Now I have programed a for loop to do t...