Learn R Programming

rapport (version 0.3)

check.limit: Input Limits

Description

Checks input limits based on provided string. If provided string is syntactically correct, a list with integers containing limit boundaries (minimum and maximum value) is returned. If provided input limit exceeds value specified in max.lim argument, it will be coerced to max.lim and warning will be returned. Default upper input limit is 50 (variables).

Usage

check.limit(x, max.lim = 50L)

Arguments

x
a character string containing limit substring
max.lim
an integer containing upper input limit

Value

  • a named list with minimal and maximal input limit

Examples

Run this code
rapport:::check.limit("[1,20]")
rapport:::check.limit("[1]")
rapport:::check.limit("[1, 0]")  # will throw error

Run the code above in your browser using DataLab