csv - How to change the exponent character's case for R's exponential notation convention -
simple question controlling notation of how r prints exponent character. default appears lowercase 'e' i'd uppercase 'e' purposes of writing data frame csv file won't alter columns diff'd other csv files exponent character holds upper case convention.
default r options
> 10^100 [1] 1e+100
desired output
> 10^100 [1] 1e+100
try formatc
> formatc(10^100,digits = 2,format = "e") [1] "1.00e+100" gsub("e","e",formatc(x = 10^100)) [1] "1e+100"
Comments
Post a Comment