y***6 发帖数: 46 | 1 Hi all,
I got a question about using print function in R.
If I have a vector, whose elements are numerical values in scientific
notation, e.g.
a=[1.0998e-01 -0.31567e-02]
The desired output is:
a=[0.10998 -0.031567].
How do I change options in print function to get the desired output? Or,
is there any other way to achieve the goal? Your help is greatly appreciated
. | F****r 发帖数: 151 | 2 print(noquote(format(a, scientific=FALSE))) | y***6 发帖数: 46 | 3 Thanks,Foster. It works! |
|