is_numeric: Is object thoroughly numeric?

View source: R/is_are.R

is_numericR Documentation

Is object thoroughly numeric?

Description

A more advanced version of is.numeric. It wraps the base-r function, but allows for recursive checking inside lists and hence data.frames as well.

Usage

is_numeric(x, recursive = T)

Arguments

x

(any object) An object to test.

recursive

(logical scalar) Whether to use recursive checking. Default=TRUE.

Value

Returns a logical scalar indicating whether the object is thoroughly numeric.

Examples

is_numeric(iris)
is_numeric(iris[-5])

Deleetdk/kirkegaard documentation built on May 8, 2024, 12:27 a.m.