checking_data: Checking data format

Description Usage Arguments Value Examples

Description

check that the data are correctly formated. This function can be called by the user and will be called by prepare_data

Usage

1
2

Arguments

prior_diet_matrix

a square matrix with similar species as colnames and rownames. Species should be consistent with Species in signature_data and prior_signature_data

signature_data

a data frame. First column should be names species and followning columns should correspond to tracers. Data should be transformed first if required. Left censored data and missing data should be denoted NA

LOQ

a data frame with the same number of rows as signature_data and one column per tracer. Gives the limit of detection of limit of quantification of the corresponding measure

prior_signature_data

a data frame that contains data that can be used to build a prior signature for source species. First column should be names Species and second one tracer. Species and tracers should be consistent with signature_data. Then, the three following columns correpond to the mean signature, the standard deviation and the number of samples.

prior_delta

a table that contains prior on magnification/enrichment of tracers per trophic level. First column contains the name of the tracer, second column contains the mean value and third column the standard deviation

Value

The function does not return any results but raises an error if a missformat is detected

Examples

1
2
3
4
5
6
7
8
9

Irstea/escroc documentation built on May 17, 2019, 7:43 a.m.