tikatuwq: Water Quality Assessment and Environmental Compliance in Brazil

Tools to import, clean, validate, and analyze freshwater quality data in Brazil. Implements water quality indices including the Water Quality Index ('WQI'/'IQA') using the weighted geometric mean following 'CETESB' methodology, an independent engine reproducing the 'IQA' of the Minas Gerais water agency 'IGAM' (a documented reproduction, not endorsed by the agency), paired comparison of 'IQA' engines with compare_iqa(), the Trophic State Index ('TSI'/'IET') after Carlson (1977) <doi:10.4319/lo.1977.22.2.0361> and Lamparelli (2004) <https://teses.usp.br/teses/disponiveis/41/41134/tde-20032006-075813/publico/TeseLamparelli2004.pdf>, and the National Sanitation Foundation Water Quality Index ('NSF WQI', Brown (1970)). The package also checks compliance with Brazilian standard 'CONAMA' Resolution 357/2005 <https://conama.mma.gov.br/?id=450&option=com_sisconama&task=arquivo.download> including the legal frequency rule (Art. 15, 80% conformity over six or more samples per year), and provides seasonal analysis with regional flow-season calendars, pollutant load computation, exceedance probability estimation, 'IET' visualization, and multivariate 'PCA' tools for routine monitoring workflows. The example dataset ('wq_demo') is a real subset from 'INEMA' monitoring data from a river in Bahia, Brazil (2020-2024).

Version: 0.11.0
Depends: R (≥ 4.1)
Imports: dplyr, readr, tibble, rlang, stats, utils, ggplot2, tidyr, lubridate, stringr, glue, scales, broom, purrr, tools
Suggests: testthat (≥ 3.0.0), spelling, rmarkdown, knitr, pkgdown, leaflet, withr
Published: 2026-10-17
DOI: 10.32614/CRAN.package.tikatuwq
Author: Vinicius Saraiva Santos ORCID iD [aut, cre], Fabricio Berton Zanchi ORCID iD [ctb]
Maintainer: Vinicius Saraiva Santos <vinisaraiva at gmail.com>
BugReports: https://github.com/tikatuwq/tikatuwq/issues
License: MIT + file LICENSE
URL: https://github.com/tikatuwq/tikatuwq, https://tikatuwq.github.io/tikatuwq/
NeedsCompilation: no
Language: en-US
Citation: tikatuwq citation info
Materials: README, NEWS
CRAN checks: tikatuwq results

Documentation:

Reference manual: tikatuwq.html , tikatuwq.pdf
Vignettes: tikatuwq: Water Quality Indices and Temporal Trends (source, R code)
tikatuwq: From raw water quality data to CONAMA report (source, R code)
tikatuwq: basic workflow (source, R code)

Downloads:

Package source: tikatuwq_0.11.0.tar.gz
Windows binaries: r-devel: tikatuwq_0.10.0.zip, r-release: tikatuwq_0.10.0.zip, r-oldrel: tikatuwq_0.10.0.zip
macOS binaries: r-release (arm64): tikatuwq_0.10.0.tgz, r-oldrel (arm64): tikatuwq_0.10.0.tgz, r-release (x86_64): tikatuwq_0.10.0.tgz, r-oldrel (x86_64): tikatuwq_0.10.0.tgz
Old sources: tikatuwq archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=tikatuwq to link to this page.