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

is.nr(x)

Arguments

x

The value or vector to check.

Value

TRUE or FALSE.

Examples

is.nr(8);    ### Returns TRUE
#> [1] TRUE
is.nr(NULL); ### Returns FALSE
#> [1] FALSE
is.nr(NA);   ### Returns FALSE
#> [1] FALSE