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

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -