pno.weighted.mean: Weighted means of niche dimensions

Description Usage Arguments Value Author(s) References See Also

View source: R/pno.weighted.mean.R


This function calculates the mean of an environmental variable weighted by the cumulative probability of each value of the environmental gradient extracted from a species distibution model (e.g. MAXENT)


pno.weighted.mean(x, subset = NULL, normalize = TRUE)



A data frame or matrix with columns corresponding to species and rows corresponding to values along an environmental gradient. The first columns contains the environmental variable, the remaining colums probabilities of suitability.


A vector of mode "character" which can be used to restrict the calculation of weighted means to those columsn in x whose column names match subset; defaults to NULL.


A logical, indicating whether to normalize PNOs prior to calculation of weighted means.


A vector of weighted means corresponding to the columns in x.


Christoph Heibl


Evans, M. E. K., S. A. Smith, R. S. Flynn, and M. J. Donoghue. 2009. Climate, niche evolution, and diversification of the 'bird-cage evening primroses' (Oenothera, sections Anogra and Kleinia) Am. Nat. 173: 225-240.

See Also

pno, anc.clim, plotAncClim

phyloclim documentation built on May 29, 2017, 9:18 p.m.

Search within the phyloclim package
Search all R packages, documentation and source code