Explore Courses Blog Tutorials Interview Questions
+1 vote
1 view
in R Programming by (50.2k points)

Hi! I want to learn how to turn values into scientific notation. 

Can someone please help me out!

1 Answer

+1 vote
by (108k points)

Let us consider the below vector:


You can convert it into scientific notation using the “formatC()” function:


This result would be as follows:

[1]  "1.3240e-01" "1.2340e-04" "2.3421e+02" "9.3243e+00"

Browse Categories