My data.frame
uses the scientific notation, when parsing files like 3.007530e+07
.
I definitely like to use it in R, however, for this analysis I have to transfer my data to csv and open it in excel(German Version), which cannot handle this notation.
My df looks sth like that:
df <- c(6.402000e+05,9.312903e+05,1.007800e+06,1.142000e+06,1.298500e+06,1.511700e+06,1.749000e+06,1.869357e+06)
I tried changing my global options such as options(scipen=999)
, which does not work, because then I have problems with my fread
function.
Therefore, my question:
How to change the notation in a data.frame
before, using write.csv()
?
I appreciate your replies!