TI: Calculate Turbidity Index (TI)

Description Usage Arguments Value Author(s) References Examples

View source: R/TI.R

Description

This function calculates Turbidity Index (TI) following the description from Chalov & Tsyplenkov (2020)

Usage

1
TI(dataframe, ssc, datetime, round_time = "hour")

Arguments

dataframe

A data set object

ssc

Turbidity variable

datetime

a vector of date-time objects

round_time

unit a character string specifying a time unit or a multiple of a unit to be rounded to. Valid base units are 'second', 'minute', 'hour', 'day', 'week', 'month', 'bimonth', 'quarter', 'season', 'halfyear' and 'year'. See lubridate::round_date

Value

A numeric variable

Author(s)

Anatoly Tsyplenkov and Sergey Chalov

References

Chalov SR, Tsyplenkov AS. 2020. Influence of macroturbulence on the dynamics of river water turbidity. Vestnik Moskovskogo universiteta. Seriya 5, Geografiya 0 (3): 34–46 (In Russ.)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library(dplyr)
data(djanturb)
output_table <- hydro_events(
  dataframe = djanturb,
  q = discharge,
  datetime = time,
  window = 21
)

output_table %>%
  filter(he == 2) %>%
  TI(
    ssc = discharge,
    datetime = time
  )

loadflux documentation built on Nov. 5, 2021, 5:07 p.m.