extract_mu {nichetools}R Documentation

extract \mu

Description

Extract Bayesian estimates of \mu from data objects created by nicheROVER or SIBER.

Usage

extract_mu(
  data,
  pkg = NULL,
  isotope_a = NULL,
  isotope_b = NULL,
  data_format = NULL
)

Arguments

data

a list created by the function niw.post() or siberMVN() in the package nicheROVER or SIBER, respectfully.

pkg

a character string that is the name of the package that you're using. Defaults to "nicheROVER". Alternatively the user can supply the argument with "SIBER".

isotope_a

a character string to change the column name of the first isotope used in the analysis. Defaults to "d13c".

isotope_b

a character string to change the name of second isotope used in the analysis. Defaults to "d15n".

data_format

a character string that decides whether the returned object is in long or wide format. Default is "long", with the alternative supplied being "wide".

Value

Returns a tibble of extracted estimates of \mu created by the function niw.post() or siberMVN() in the packages nicheROVER. and SIBER.

The tibble will contain five columns in the following order, metric, sample_name, sample_number, and the names of the isotope columns supplied to niw.post() or siberMVN() (e.g., d13c and d15n ).

See Also

nicheROVER::niw.post() and SIBER::siberMVN()

Examples

extract_mu(
data = niw_fish_post
)
extract_mu(
data = post_sam_siber,
pkg = "SIBER"
)


[Package nichetools version 0.2.0 Index]