valid_sql_limit: Check if a scalar is a valid limit for a SQL query

View source: R/utils.R

valid_sql_limitR Documentation

Check if a scalar is a valid limit for a SQL query

Description

Check whether input is a non-negative integer or Inf, which can be passed on as ⁠LIMIT x⁠ to SQL.

Usage

valid_sql_limit(x)

Arguments

x

A scalar (numeric or Inf).

Value

Logical.


f-hafner/magutils documentation built on Sept. 20, 2023, 5:05 a.m.