Function to quantify temperature hours between x and y.

count_between(tli, tls, x, total = TRUE)

Arguments

tli

lower limit

tls

upper limit

x

Vector containing values (data).

total

TRUE Shows the total value of hours.

Value

The function returns the total value of hours.

Details

Function to quantify temperature hours between x and y.

Examples

x <- rnorm(500, 7, 3) count_between(tli = 8, tls = 15, x = x, total = TRUE)
#> [1] 184