Skip to content

realTimeloads

Analyte Flux and Load from Estimates of Concentration and Discharge

v1.0.0 · Oct 18, 2023 · GPL (>= 3)

Description

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.

Downloads

186

Last 30 days

23056th

597

Last 90 days

2.4K

Last year

Trend: -9.3% (30d vs prior 30d)

CRAN Check Status

2 ERROR
12 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 ERROR
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 ERROR
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (2 non-OK)
ERROR r-oldrel-macos-arm64

whether package can be installed

Installation failed.
See ‘/Volumes/Builds/packages/big-sur-arm64/results/4.4/realTimeloads.Rcheck/00install.out’ for details.
ERROR r-release-macos-arm64

examples

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

Check History

ERROR 11 OK · 0 NOTE · 0 WARNING · 3 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-macos-arm64

examples

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

...[truncated]...
o)
> 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
ERROR r-release-macos-arm64

examples

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

...[truncated]...
o)
> 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
ERROR r-oldrel-macos-arm64

whether package can be installed

Installation failed.
See ‘/Volumes/Builds/packages/big-sur-arm64/results/4.4/realTimeloads.Rcheck/00install.out’ for details.

Dependency Network

Dependencies Reverse dependencies data.table imputeTS mice signal TideHarmonics realTimeloads

Version History

new 1.0.0 Mar 10, 2026