Learn R Programming

ino (version 1.0.2)

is_number: Check for proper number

Description

This function checks whether the input is proper number, i.e., a single numeric.

Usage

is_number(x, error = TRUE)

Value

If error = TRUE, either invisibly TRUE or an error is thrown. If error = FALSE, invisibly TRUE or FALSE.

Arguments

x

Any object.

error

In the case that x is not a proper number, either TRUE (default) to throw an error or FALSE to return invisibly FALSE.