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?
Asked
Active
Viewed 4.9k times
1 Answers
62
You can do:
format(functionResult, scientific=FALSE);
or:
as.integer(functionResult);

Martin Dinov
- 8,757
- 3
- 29
- 41
-
4You could use round to specify a number decimals as well: ```round(functionResult,2)``` – ericbrownaustin Jul 20 '17 at 18:32