chk_finite_scalar: Check that a scalar or vector only has finite values

Description Usage Arguments Examples

View source: R/chk-single.R

Description

Check that a scalar or vector only has finite values

Usage

1
2
3
4
5
6
7

Arguments

x

A numeric scalar.

name

The name for x that will be used in error messages.

Examples

1
2
3
4
x <- 0
chk_finite_scalar(x, name = "x")
x <- 1:5
chk_finite_vector(x, name = "x")

johnrbryant/demcheck documentation built on Dec. 31, 2021, 11:57 a.m.