View source: R/extract_niche_size.R
extract_niche_size | R Documentation |
Extract niche size based on elliptical niche region of Bayesian estimates of
sigma created by function niw.post()
or siberEllipses()
in the package
nicheROVER or
SIBER, respectfully.
For nicheROVER
this function is a wrapper around nicheROVER::niche.size
.
extract_niche_size(
data,
pkg = NULL,
name = NULL,
prob = NULL,
community_df = NULL
)
data |
a |
pkg |
a |
name |
a |
prob |
a |
community_df |
a four column data frame. One of the columns has to be named
|
if pkg
is set to "nicheROVER"
then a tibble
containing three rows, sample_name
, id
, and niche_size
is returned.
nicheROVER::niche.size()
, nicheROVER::niw.post()
,
SIBER::siberEllipses()
, and SIBER::createSiberObject()
extract_niche_size(data = niw_fish_post)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.