all_real: all_real

View source: R/all_real.R

all_realR Documentation

all_real

Description

All real

Usage

all_real(x, include_na = FALSE, verbose = TRUE)

Arguments

x

vector.

include_na

Logical if 'NA' should also be considered as non-real.

verbose

Logical if number of non-real numbers should be printed as message.

Details

The function checks if a vector contains 'NaN' or 'Inf' values. Input must be a vector. If 'include_na = TRUE' also 'NA's are considered.

Value

vector

Examples

x <- c(1, 2, 3, NA, 5, NaN, Inf)
all_real(x)

y <- c(1, 2, 3, 4, 5, 6, 7)
all_real(y)


mhesselbarth/suppoRt documentation built on April 10, 2024, 2:06 p.m.