Analyte Flux and Load from Estimates of Concentration and Discharge
Overview
Flux (mass per unit time) and Load (mass) are computed from timeseries estimates of analyte concentration and discharge. Concentration timeseries are computed from regression between surrogate and user-provided analyte. Uncertainty in calculations is estimated using bootstrap resampling. Code for the processing of acoustic backscatter from horizontally profiling acoustic Doppler current profilers is provided. All methods detailed in Livsey et al (2020) doi:10.1007/s12237-020-00734-z, Livsey et al (2023) doi:10.1029/2022WR033982, and references therein.
- First release to CRAN.
From NEWS.md in the release
Install
Health
ERRORexamplesr-oldrel-macos-arm64
Running examples in ‘realTimeloads-Ex.R’ failed The error most likely occurred in: > ### Name: impute_data > ### Title: Returns x with gaps imputed using ARIMA and Decision Trees, > ### optional uncertainty estimation using Monte Carlo resampling > ### Aliases: impute_data > > ### ** Examples > > # Impute non-tidal data > time <- realTimeloads::ExampleData$Sediment_Samples$time > xo <- realTimeloads::ExampleData$Sediment_Samples$SSCxs_mg_per_liter > Q <- realTimeloads::ExampleData$Discharge$Discharge_m_cubed_per_s > idata <- sample(1:length(xo),round(length(xo)*0.5),replace=FALSE) > x <- rep(NA,length(xo)) > x[idata] <- xo[idata] # simulated samples > flow_concentrtion_ratio <- imputeTS::na_interpolation(Q/x) > Xreg <- cbind(Q,flow_concentrtion_ratio) > Output <- impute_data(time,x,Xreg,MC = 10,ptrain = 0.8) Error in optim(init[mask], getLike, method = "L-BFGS-B", lower = rep(0, : L-BFGS-B needs finite values of 'fn' Calls: impute_data -> <Anonymous> -> <Anonymous> -> optim Execution halted
- ERROR12 OK, 1 ERRORNow
- ERROR11 OK, 3 ERROR2026-03-10
Documentation
- Help pages
- 18 (1 internal)includes a package overview page
- Examples that run
- 63%10 run in a plain check · 6 only when donttest examples are enabled (R CMD check --as-cran)
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 89%
- realTimeloads HTML
Downloads
Dependencies
Installing realTimeloads adds 85 packages (51 with compiled code, 70 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.
Code & Tests
Datasets
People & History
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 1.0.0Latest2023-10-18 · current release
- RR 4.3.0 released · 2023-04-21
Package metadata
- First published
- 2023-10-18
- Total releases
- 1 / 3 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 2.10
- Bundled data
- 551 KB / 1 file
- Download size
- 1.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("realTimeloads")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.