is.nr

Share:

Description

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

Usage

1
is.nr(x)

Arguments

x

The value or vector to check.

Value

TRUE or FALSE.

Author(s)

Gjalt-Jorn Peters

Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>

Examples

1
2
3
is.nr(8);    ### Returns TRUE
is.nr(NULL); ### Returns FALSE
is.nr(NA);   ### Returns FALSE

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.