is.natural: Check if value is a natural number

View source: R/other-functions.R

is.naturalR Documentation

Check if value is a natural number

Description

Check if value is a natural number

Usage

is.natural(x, tol = .Machine$double.eps^0.5)

Arguments

x

Numeric value to check

tol

Tolerance for floating point comparison

Value

Logical indicating if x is a natural number (positive integer)


WMAP documentation built on Oct. 6, 2026, 1:07 a.m.