# NOT RUN {
library(florestal)
#loads the data by an inventory with plots
data("simple1")
head(simple1)
#Using an equation entered manually
IF_simple <- indvol(x = simple1, mens="plot", myeq = "0.000065661*d^2.475293*h^0.300022")
#Using a form factor
IF_f <- indvol(x = simple1, mens="plot", f = 0.7)
#loads the data by an inventory with strata
data("est1")
head(est1)
#create an object for each stratum and join with 'rbind'
IF_e1<-indvol(est1[est1$Stratum==1,],mens="strata",veg="cerradoss_df")
IF_e2<-indvol(est1[est1$Stratum==2,],mens="strata",veg="matas>10_df")
est2<-rbind(IF_e1,IF_e2)
#loads the data by an inventory by the Bitterlich Method
data("bit1")
head(bit1)
IF_bit <- indvol(bit1, mens="bit", f=0.7)
#loads the data by an inventory from a census
data("census1")
head(census1)
IF_census <- indvol(census1, mens="census", veg="cerradoss_df")
# }
Run the code above in your browser using DataLab