AW_calc: Compute an abundance weighted FPD

Description Usage Arguments Value Author(s)

View source: R/AW_Novelty.R

Description

This function is designed to be called internally by rarefy_FPD and weights each species distance based on their local abundance.

Usage

1
2
AW_calc(focal.species, community.data, fpd.mat, metric = c("NND", "MPD"),
  na.rm = TRUE)

Arguments

focal.species

The focal species or plot identifier that you want to use to create a the phylogeny

community.data

The community data file. Each observation of a species in a community should be its own row. For now, the column specifiy which community is which is called exotic_species, but this will be generalized later using an argument to specifiy which column marks community separators and which column holds the actual species names

fpd.mat

A functional-phylogenetic distance matrix

metric

The metric of novelty you'd like to calculate. Currently supports mean pairwise distance and nearest neighbor distance

na.rm

A logical indicating whether to remove missing values

Value

A numeric

Author(s)

Sam Levin


levisc8/Fun_Phylo_Package documentation built on June 2, 2020, 8:41 a.m.