Skip to content

Instantly share code, notes, and snippets.

@rhilfi
Created December 2, 2021 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rhilfi/40dc74c47276b17ccd011652b1be890c to your computer and use it in GitHub Desktop.
Save rhilfi/40dc74c47276b17ccd011652b1be890c to your computer and use it in GitHub Desktop.
illustration_scientific_notation
# 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