This function helps to define the stratigraphic relation between samples, with questions. The output of this function can be used in function AgeS_Computation.

SCMatrix(Nb_sample, SampleNames)

Arguments

Nb_sample

interger: the sample number.

SampleNames

charcater vector: sample names.

Value

A Matrix that summarise the ordered relation between samples. This matrix can be intergrate in AgeS_Computation function. We refer to detail on AgeS_Computation for more information concerning this matrix.

Details

Ask if sample i is younger than sample j to construc the stratigraphic constrain matrix.

See also

AgeS_Computation

Author

Claire Christophe, Anne Philippe, Guillaume Guerin

How to cite

Christophe, C., Philippe, A., 2023. SCMatrix(): Definition of the stratigraphic constraint matrix. In: Christophe, C., Philippe, A., Kreutzer, S., Guérin, G., Baumgarten, F.H., 2023. BayLum: Chronological Bayesian Models Integrating Optically Stimulated. R package version 0.3.1.9000-7. https://CRAN.r-project.org/package=BayLum

Examples

## Assume that "sample1" is younger than "sample2"
## That means the expected value is 1.
## It is an interactive function.
if (FALSE) {
SCMatrix(Nb_sample=2,SampleNames=c("sample1","sample2"))
## Enter the value 1
}