Re: [R] Scientific Format E

2009-08-05 Thread Henrique Dallazuanna
Another options is: sprintf("%.0E", 0.2) On Wed, Aug 5, 2009 at 9:18 AM, Henrique Dallazuanna wrote: > You can try this: > toupper(format(0.2, scientific = TRUE)) > > > On Wed, Aug 5, 2009 at 9:05 AM, Wittmer, Irene wrote: > >> >> Dear Helpers, >> >> I would like to export a large dataset to a tx

Re: [R] Scientific Format E

2009-08-05 Thread jim holtman
Use 'sprintf' to format your data before writing out: > sprintf("%G", runif(10,1e6, 1e10)) [1] "3.67382E+09" "9.47111E+09" "1.02591E+09" "5.368E+09" "8.17346E+08" "2.89006E+09" "6.62398E+09" "1.29721E+09" "9.99348E+09" [10] "6.73539E+09" On Wed, Aug 5, 2009 at 8:05 AM, Wittmer, Irene wrote: > >

Re: [R] Scientific Format E

2009-08-05 Thread Henrique Dallazuanna
You can try this: toupper(format(0.2, scientific = TRUE)) On Wed, Aug 5, 2009 at 9:05 AM, Wittmer, Irene wrote: > > Dear Helpers, > > I would like to export a large dataset to a txt file in order to use it > in an other programm. > Unfurtunatly the R the scientific format is a small e: > > 2 e-1

[R] Scientific Format E

2009-08-05 Thread Wittmer, Irene
Dear Helpers, I would like to export a large dataset to a txt file in order to use it in an other programm. Unfurtunatly the R the scientific format is a small e: 2 e-1 while the other programm requires the format to be a capital E: 2E-1 How can I change this in R? Thanks for your help PS