Package: fingerPro
Type: Package
Title: Unmixing Model Framework
Version: 2.1
Encoding: UTF-8
Date: 2026-04-09
Authors@R: c(
  person("Borja Latorre (Core Team)", role = c("aut", "cre"), email = "borja.latorre@csic.es", comment = c(ORCID = "0000-0002-6720-3326")),
  person("Leticia Gaspar (Core Team)", role = "aut", comment = c(ORCID = "0000-0002-3473-7110")),
  person("Ivan Lizaga", role = "aut", comment = c(ORCID = "0000-0003-4372-5901")),
  person("Leticia Palazon", role = "aut", comment = c(ORCID = "0000-0002-5773-1723")),
  person("Vince Q Vu", role = "ctb"),
  person("Ana Navas (Core Team)", role = c("aut", "fnd", "ths"), comment = c(ORCID = "0000-0002-4724-7532")))
Description: Quantifies the provenance of sediments by applying a mixing model algorithm to end sediment mixtures based on a comprehensive characterization of the sediment sources. The 'fingerPro' model builds upon the foundational concept of using mass balance linear equations for sediment source quantification by incorporating several distinct technical advancements. It employs an optimization approach to normalize discrepancies in tracer ranges and minimize the objective function. Latin hypercube sampling is used to explore all possible combinations of source contributions (0-100%), mitigating the risk of local minima. Uncertainty in source estimates is quantified through a Monte Carlo routine, and the model includes additional metrics, such as the normalized error of the virtual mixture, to detect mathematical inconsistencies, non-physical solutions, and biases. A new linear variability propagation (LVP) method is also included to address and quantify potential bias in model outcomes, particularly when dealing with dominant or non-contributing sources and high source variability, offering a significant advancement for field studies where direct comparison with theoretical apportionments is not feasible. In addition to the unmixing model, a complete framework for tracer selection is included. Several methods are implemented to evaluate tracer behaviour by considering both source and mixture information. These include the Consistent Tracer Selection (CTS) method to explore all tracer combinations and select the optimal ones improving the robustness and interpretability of the model results. A Conservative Balance (CB) method is also incorporated to enable the use of isotopic tracers. The package also provides several graphical tools to support data exploration and interpretation, including box plots, correlation plots, Linear Discriminant Analysis (LDA) and Principal Component Analysis (PCA).
License: GPL-2
URL: https://github.com/eead-csic-eesa/fingerPro
Depends: R (>= 3.5)
Imports: Rcpp (>= 0.11.3), klaR (>= 0.6-12), ggplot2 (>= 2.2.1), GGally
        (>= 1.3.2), plyr (>= 1.8.4), MASS (>= 7.3-45), reshape (>=
        0.8.7), grid (>= 3.1.1), gridExtra (>= 2.3), scales (>= 0.5.0),
        car (>= 3.0.0), RcppProgress (>= 0.4), Ternary (>= 1.2.2),
        dplyr (>= 1.0.7), crayon (>= 1.4.2), plotly (>= 4.10.3)
Suggests: knitr, rmarkdown
LinkingTo: Rcpp, RcppGSL, RcppProgress
RoxygenNote: 7.3.3
VignetteBuilder: knitr
NeedsCompilation: yes
Author: Borja Latorre (Core Team) [aut, cre] (ORCID:
    <https://orcid.org/0000-0002-6720-3326>),
  Leticia Gaspar (Core Team) [aut] (ORCID:
    <https://orcid.org/0000-0002-3473-7110>),
  Ivan Lizaga [aut] (ORCID: <https://orcid.org/0000-0003-4372-5901>),
  Leticia Palazon [aut] (ORCID: <https://orcid.org/0000-0002-5773-1723>),
  Vince Q Vu [ctb],
  Ana Navas (Core Team) [aut, fnd, ths] (ORCID:
    <https://orcid.org/0000-0002-4724-7532>)
Maintainer: Borja Latorre (Core Team) <borja.latorre@csic.es>
Packaged: 2026-04-14 17:21:44 UTC; r1052262
Repository: CRAN
Date/Publication: 2026-04-15 10:30:02 UTC
Built: R 4.7.0; x86_64-w64-mingw32; 2026-08-04 05:12:15 UTC; windows
Archs: x64
