export_diet_species: Export diet

Description Usage Arguments Value Examples

View source: R/export_diet_species.R

Description

export the MCMC samples of diet for given species

Usage

1
export_diet_species(myfit, mydata, spec_names)

Arguments

myfit

a fit as returned by fit_escroc

mydata

a list as returned by prepare_data

spec_names

a character or vector list containing the species names to be plotted

Value

a list matrices of the same length as spec_names

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#importing data
data(signature_data)
data(prior_diet_matrix)
data(LOQ)
data(prior_signature_data)
prior_delta <- data.frame(tracer=c("X15N","X13C"),mean=c(3,0),sd=c(1,1))

#check that everything is ok
mydata <- prepare_data(prior_diet_matrix,signature_data,
LOQ,prior_signature_data,prior_delta)

#build the model
mymodel <- building_model(mydata)

#fit the model
myresults <- fit_escroc(mydata, mymodel)


head(export_diet_species(myresults,mydata,"Sole"))

Irstea/escroc documentation built on Dec. 9, 2018, 12:29 a.m.