Learn R Programming

linear.tools (version 1.3.0)

check_single_numeric: check whether an object is a single numeric number

Description

check whether an object is a single numeric number

Usage

check_single_numeric(x, sign = 1)

Arguments

x
the object to be checked
sign
the correct sign: 1 or -1

Value

a boolean, whehter x is a valid numeric.

Examples

Run this code

check_single_numeric(x = nrow(ggplot2::diamonds))

Run the code above in your browser using DataLab