Learn R Programming

dRiftDM (version 0.3.1)

is_numeric: Check if an object is a valid numeric vector

Description

This function verifies whether the input is a numeric vector with no missing (NA, NaN) or infinite (Inf or -Inf) values.

Usage

is_numeric(x)

Value

A logical value: TRUE if the input is a numeric vector without any missing or infinite values, otherwise FALSE.

Arguments

x

An object to check.