is_positive_integer: Check that a value is a positive integer

Description Usage Arguments Value

View source: R/utils.R

Description

Check that a value is a positive integer. If the value is a string, will return 'TRUE' if it can be coerced to a positive integer.

Usage

1

Arguments

data

A single value to check whether it is a positive integer.

Value

'TRUE“ if data is an integer or a string that is coercible to a positive integer; else 'FALSE'


Sage-Bionetworks/synapseforms documentation built on June 16, 2020, 8:35 a.m.