data(africa)
tr <- data.frame(species = africa$trait$species,
height = log10(africa$trait$h_max),
habit = africa$trait$habit)
fa <- tpd_alpha(africa$comm, tr)
head(fa)
Run the code above in your browser using DataLab