R: Generate sequence of powers of ten

后端 未结 1 1626
被撕碎了的回忆
被撕碎了的回忆 2021-02-19 07:03

How do you generate the sequence of numbers 1, 10, 100, 1000, 10000, ... quickly/efficiently in R?

I know seq can give you a sequence of numbers separated b

相关标签:
1条回答
  • 2021-02-19 07:43
    10^(0:10)
    #  [1] 1e+00 1e+01 1e+02 1e+03 1e+04 1e+05 1e+06 1e+07 1e+08 1e+09 1e+10
    
    0 讨论(0)
提交回复
热议问题