0

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,509
  • 12
  • 23
imran p
  • 302
  • 1
  • 10

2 Answers2

1

We can use options

 options(scipen = 999)
akrun
  • 789,025
  • 32
  • 460
  • 575
1

Try this CODE as akrun suggests:

options(scipen=999)

or

format(99999999,scientific = FALSE)
TarJae
  • 43,365
  • 4
  • 14
  • 40
  • @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