Skip to content

Instantly share code, notes, and snippets.

@tdsmith
Created November 16, 2012 08:55
Show Gist options
  • Save tdsmith/4085621 to your computer and use it in GitHub Desktop.
Save tdsmith/4085621 to your computer and use it in GitHub Desktop.
double and numeric are not synonyms
> 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