无法将科学计数法转换为R

时间:2020-07-20 18:01:20

标签: r

有人可以帮我将R中的exp转换为数字吗?

> asd <-data.frame(a = c(1234254535343,423), b= c("a","f"))
> asd$a <- scientific(asd$a, digits = 3)
> asd
         a b
1 1.23e+12 a
2 4.23e+02 f

> asd$a <- format(asd$a, scientific = FALSE)
> asd
         a b
1 1.23e+12 a
2 4.23e+02 f

预期产量

> asd
         a      b
1 1234254535343 a
2 423           f

0 个答案:

没有答案