Mr. Carlson

 

Well that was easy enough. Thank you.  

Options -
https://stat.ethz.ch/R-manual/R-devel/library/base/html/options.html

 

Jeff

 

From: David L Carlson <dcarl...@tamu.edu> 
Sent: Sunday, October 14, 2018 8:58 PM
To: r-help@r-project.org; reichm...@sbcglobal.net
Subject: Re: [R] Scientific Notation

 

You probably need to read up on the scipen= argument in ?options. What is
displayed at the console is not what is stored:

 

> x <- 1619052826499

> print(x)

[1] 1.619053e+12

> dput(x)

1619052826499

> options(scipen=10)

> print(x)

[1] 1619052826499

 

------------------------- 

David L Carlson

Anthropology Department

Texas A&M University

  _____  

From: R-help <r-help-boun...@r-project.org
<mailto:r-help-boun...@r-project.org> > on behalf of Jeff Reichman
<reichmanj@sbcglobalnet>
Sent: Sunday, October 14, 2018 8:45:17 PM
To: r-help@r-project.org <mailto:r-help@r-project.org> 
Subject: [R] Scientific Notation 

 

R Forum

Is there a way to tell R to not import numbers as scientific notation
(read.csv).  So that 1619052826499 will not be imported as 1.619053e+12.

Jeff Reichman

______________________________________________
R-help@r-project.org <mailto:R-help@r-project.org>  mailing list -- To
UNSUBSCRIBE and more, see
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.


        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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