[R] Darstellung mit Nachkommastellen

Chuck Cleland ccleland at optonline.net
Tue Nov 15 16:02:37 CET 2005


Look at the scipen argument to options().  For example:

 > 0.00000001
[1] 1e-08

 > options(scipen=10)

 > 0.00000001
[1] 0.00000001

suling at bips.uni-bremen.de wrote:
> Hi!
> I got a rather stupid question (I think):
> 
> Is there ANY option that makes R display numericals not like
>    
>    "1e-8"
> 
> but as
> 
>    "0.00000001"	
> 
> by default ?
> 
> And I need the outcome to be really numerical, so formatC(...) which produces a 
> character or something like this won't be acceptable.
> 
> Any help on this would be appreciated, thanx.
> 
> Marc
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 452-1424 (M, W, F)
fax: (917) 438-0894




More information about the R-help mailing list