extract_niche_size {nichetools}R Documentation

extract niche size

Description

Extract niche size based on elliptical niche region of Bayesian estimates of sigma created by function niw.post() in the package nicheROVER. This function is a wrapper around nicheROVER::niche.size.

Usage

extract_niche_size(data, name = NULL, prob = NULL)

Arguments

data

a list created by the function niw.post() in the package nicheROVER.

name

a character string that will be assinged as the column name for groups. Default is sample_name.

prob

a numeric bound by 0 and 1 indicating the probabilistic niche size. Default is 0.95.

Value

a tibble containing three rows, sample_name, id, and niche_size.

See Also

nicheROVER::niche.size() and nicheROVER::niw.post()

Examples

extract_niche_size(data = niw_fish_post)



[Package nichetools version 0.2.0 Index]