check_numeric: Check that a variable is numeric in a certain range

Description Usage Arguments

View source: R/stfl_misc.R

Description

Check that a variable is numeric in a certain range

Usage

1
2
3
4
5
6
7
check_numeric(
  variable,
  min.value = 0,
  max.value = Inf,
  req.length = 1,
  check.whole = TRUE
)

Arguments

variable

Value to check if numeric

min.value

Minimum value for variable

max.value

Maximum value for variable

req.length

Required length for the variable.

check.whole

Should the variabile be checked to see if it a whole number?


bcgov/StreamFlowTrend documentation built on Dec. 19, 2021, 7:38 a.m.