Created
December 2, 2021 11:27
-
-
Save rhilfi/40dc74c47276b17ccd011652b1be890c to your computer and use it in GitHub Desktop.
illustration_scientific_notation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# example to illustrate scientific notation | |
# https://stackoverflow.com/questions/5352099/how-to-disable-scientific-notation | |
scientificNotation=format(c(1000,100,10,1,0.1,0.01, 0.001, 0.0001, 0.00001, 0.000001, 0.0000001), scientific=TRUE) | |
nonScientificNotation=format(c(1000,100,10,1,0.1,0.01, 0.001, 0.0001, 0.00001, 0.000001, 0.0000001), scientific=FALSE) | |
data<-data.frame(nonScientificNotation, scientificNotation) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment