validateWindowArgument: Validate a window argument. It must be a list of two elements...

View source: R/validate.R

validateWindowArgumentR Documentation

Validate a window argument. It must be a list of two elements (window start and window end), both must be integerish and window start must be lower or equal than window end.

Description

Validate a window argument. It must be a list of two elements (window start and window end), both must be integerish and window start must be lower or equal than window end.

Usage

validateWindowArgument(window, snakeCase = TRUE, call = parent.frame())

Arguments

window

time window

snakeCase

return default window name in snake case if TRUE

call

A call argument to pass to cli functions.

Value

time window

Examples

validateWindowArgument(list(c(0, 15), c(-Inf, Inf)))
validateWindowArgument(list(c(0, 15), c(-Inf, Inf)), snakeCase = FALSE)


omopgenerics documentation built on April 3, 2025, 8:47 p.m.