To achieve this, you have to disable the scientific notations in R using the scipen option from the options function, which does the following
Scipen:- A penalty to be applied when deciding to print numeric values in fixed or exponential notation. Positive values bias towards fixed and negative towards scientific notation: fixed notation will be preferred unless it is more than scipen digits wider.
To disable exponential format/scientific notations:
options(scipen=999)
For example:
num <- c(2.21e+09, 7)options("scipen"=100, "digits"=4)
num
[1] 2210000000 7
Note: This will disable the scientific notation in the global setting.
To disable scientific notation for a particular function, use the following:
format(functionResult, scientific=FALSE)