
Last chance! 50% off unlimited learning
Sale ends in
Functions to check if an object is a powermean
, or coerse an object
into a powermean
; for raw_alpha()
, norm_alpha()
,
raw_rho()
, norm_rho()
, or raw_gamma()
.
powermean(results, meta, tag)is.powermean(x)
# S4 method for powermean
show(object)
matrix
of mode numeric
; contains values
calculated from diversity-term functions norm_alpha()
,
raw_alpha()
, raw_rho()
, norm_rho()
, and
raw_gamma()
object of class metacommunity
; contains proportional
abundance of types, pair-wise similarity, and other associated variables.
measure
any R object
object of class powermean
powermean(x)
returns an object of class powermean
.
is.powermean(x)
returns TRUE if its argument is a
powermean, FALSE otherwise.
print(x)
prints an object object of class powermean
# NOT RUN {
pop <- data.frame(a = c(1,3), b = c(1,1))
row.names(pop) <- paste0("sp", 1:2)
pop <- pop/sum(pop)
meta <- metacommunity(pop)
# Calculate subcommunity raw alpha diversity (takes the powermean)
a <- raw_alpha(meta)
class(a)
# }
Run the code above in your browser using DataLab