userfriendlyscience (version 0.5-2)

is.nr: is.nr

Description

Convenience function that returns TRUE if the argument is not null, not NA, and is.numeric.

Usage

is.nr(x)

Arguments

x
The value or vector to check.

Value

TRUE or FALSE.

Examples

Run this code
is.nr(8);    ### Returns TRUE
is.nr(NULL); ### Returns FALSE
is.nr(NA);   ### Returns FALSE

Run the code above in your browser using DataLab