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

is_numeric

Test is an object is integer or double


Description

Numeric is used in three different ways in base R:

  • as an alias for double (as in as.numeric())

  • to mean either integer or double (as in mode())

  • for something representable as numeric (as in as.numeric()) This function tests for the second, which is often not what you want so these functions are deprecated.

Usage

is_numeric(x)

is_scalar_numeric(x)

purrr

Functional Programming Tools

v0.3.4
GPL-3 | file LICENSE
Authors
Lionel Henry [aut, cre], Hadley Wickham [aut], RStudio [cph, fnd]
Initial release

We don't support your browser anymore

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