Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 15th, 2012  |  syntax: None  |  size: 0.24 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. R: Disabling scientific notation when converting to JSON
  2. >  toJSON(c(1200000000, 400000), digits = 10)
  3. [1] "[  1200000000,      400000 ]"
  4.        
  5. > toJSON(format(c(1200000000, 400000), scientific = F, trim=T))
  6. [1] "["1200000000","400000"]"