convert from scientific notation to regular notation in r

You can convert from scientific notation to regular notation in R using the format function. Here's an example:

main.r
num <- 6.022e+23
formatted_num <- format(num, scientific = FALSE)
print(formatted_num)
87 chars
4 lines

This will output:

main.r
[1] "602200000000000000000000"
31 chars
2 lines

related categories

gistlibby LogSnag