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

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -