Another options is:
sprintf("%.0E", 0.2)

On Wed, Aug 5, 2009 at 9:18 AM, Henrique Dallazuanna <www...@gmail.com>wrote:

> You can try this:
> toupper(format(0.2, scientific = TRUE))
>
>
> On Wed, Aug 5, 2009 at 9:05 AM, Wittmer, Irene <irene.witt...@eawag.ch>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
>>
>> 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: I already found the command to turn them into a non scientific
>> format (scientific=FALSE)
>>
>>
>>
>>        [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-help@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>
>
> --
> Henrique Dallazuanna
> Curitiba-Paraná-Brasil
> 25° 25' 40" S 49° 16' 22" O
>



-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to