1

When I try removing scientific notation, the number gets converted to character. Can we not remove scientific notation and still keep the output as numeric?

numb <- 20172334534654e-08
class(format(numb, scientific = F))
pietrodito
  • 1,783
  • 15
  • 24
imran p
  • 332
  • 2
  • 12

2 Answers2

1

We can use options

 options(scipen = 999)
akrun
  • 874,273
  • 37
  • 540
  • 662
1

Try this CODE as akrun suggests:

options(scipen=999)

or

format(99999999,scientific = FALSE)
TarJae
  • 72,363
  • 6
  • 19
  • 66
  • @akrun which OS has trouble with F/T? I mean I agree it's better to specify but I haven't seen any OS specific issues regarding it. – Dason May 03 '21 at 15:30
  • Same to me. I don't know why? – TarJae May 03 '21 at 15:48
  • 1
    @TarJae Some people will downvote answers if they think the question is a duplicate. I don't agree with the practice but I've heard of it occurring. – Dason May 03 '21 at 17:01