Displaying 1 result from an estimated 1 matches for "plotdft".
Did you mean:
plotdf
2005 Feb 03
1
Efficient selection and alteration of dataframe records
...max (count of species)
Smax=length(abun.table$Freq[abun.table$Freq>0])
Smax
traitdf=data.frame(
tspp=c("Sp1","Sp2","Sp3","Sp4","Sp5"),
width=runif(5),
abun=abun.table$Freq)
traitdf[1,]
rm(abun.table)
#3. merge plotdf and traitdf
plotdft=merge(plotdf, traitdf, by.x ="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...