Because Fortran, I need to write a program that, among other wonderful features, will force R to output a number in scientific notation with 3 significant figures after the decimal point.
Specifically, I need 170.5 to be written to output as 1.705e+02.
Using options(scipen = -999), I can force r to write 170.5 as 1.71e+02. However, this is insufficient for my use - ireally need that third digit after the period.
I think this question ought to be easy, but I am unable to figure out how to solve it. Thanks.