44

The result of function was displayed in scientific notation, I want to change it back to normal, but only for that function, I don't want to change the global setting. Can anyone help?

ChaoYang
  • 837
  • 2
  • 8
  • 14

1 Answers1

62

You can do:

format(functionResult, scientific=FALSE);

or:

as.integer(functionResult);
Martin Dinov
  • 8,757
  • 3
  • 29
  • 41