Created
November 16, 2012 08:55
-
-
Save tdsmith/4085621 to your computer and use it in GitHub Desktop.
double and numeric are not synonyms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> a <- c(1,2) | |
> b <- as.integer(a) | |
> is.numeric(a) | |
[1] TRUE | |
> is.numeric(b) | |
[1] TRUE | |
> is.double(b) | |
[1] FALSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment