Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

is.number

Check Values


Description

Returns TRUE if the value is finite or infinite, i.e., is neither missing (NA) nor not-a-number (Nan). It replicates the same behavior of the homonymous S+ function.

Usage

is.number(...)

Arguments

...

numeric vector

Details

is.number is TRUE if the value is finite or infinite, i.e., is neither missing ( NA) nor not-a-number ( NaN).

Author(s)

Knut M. Wittkowski kmw@rockefeller.edu

Examples

is.number(32)
# [1] TRUE
is.number(matrix(1:20, nrow=2))
#      [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10]
# [1,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE  TRUE
# [2,] TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE TRUE  TRUE
is.number('s')
# [1] FALSE

muStat

Prentice Rank Sum Test and McNemar Test

v1.7.0
GPL (>= 2)
Authors
Knut M. Wittkowski <kmw@rockefeller.edu> and Tingting Song <ttsong@gmail.com>
Initial release
2010-09-17

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.