search for: tspp

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

Did you mean: tsp
2005 Feb 03
1
Efficient selection and alteration of dataframe records
...),rep("Sp2",30),rep("Sp3",20),rep("Sp4",5),rep("Sp5",5)), dim=runif(100)*100) plotdf[1,] abun.table=as.data.frame(table(plotdf$pspp)) #2.1 calculate Smax (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 s...