is_number {ao}R Documentation

Check for number.

Description

This function checks if the input x is a (vector of) number(s), i.e. a (vector of) positive integer value(s).

Usage

is_number(x)

Arguments

x

A (vector of) numeric value(s).

Value

A logical vector of the same length as x.

Examples

is_number(c(0, 1, 1.5))

[Package ao version 0.2.1 Index]