createSiberObject: Read in SIBER format data and generate the SIBER object

Description Usage Arguments Value Examples

View source: R/createSiberObject.R

Description

This function takes raw isotope data and creates a SIBER object which contains information in a structured manner that enables other functions to loop over groups and communities, fit Bayesian ellipses, and afterwards, generate various plots, and additional analyses on the posterior distributions.

Usage

1

Arguments

data.in

Specified In a basic R data.frame or matrix comprising 4 columns. The first two of which are typically isotope tracers, then the third is a column that indicates the group membership, and the fourth column indicates the community membership of an observation. Communities labels should be entered as sequetial numbers. As of v2.0.1 group labels can be entered as strings and/or numbers and need not be sequential.

Value

A siber list object, that contains data that helps with various model fitting and plotting.

Examples

1
2
3
data(demo.siber.data)
my.siber.data <- createSiberObject(demo.siber.data)
names(my.siber.data)

SIBER documentation built on May 30, 2017, 2:03 a.m.