Description Usage Arguments Details Value Examples
View source: R/is_wholenumber.R
Indique si la valeur est un nombre entier.
1 |
x |
Vecteur de type |
R fait la différence entre un integer
et un numeric
. Par exemple, is.integer(1) = FALSE
, mais is.integer(1L) = TRUE
.
Logical
1 2 3 4 5 | is.wholenumber(5) # numeric - TRUE
is.wholenumber(5L) # integer - TRUE
is.wholenumber(5.5) # numeric - FALSE
is.wholenumber(1:10) # plusieurs valeurs - TRUE
is.wholenumber(c(1:10, 11.1)) # plusieurs valeurs - FALSE
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.