开发者

How to generate a vector containing a numeric sequence with a given step?

开发者 https://www.devze.com 2023-03-29 18:19 出处:网络
I ha开发者_如何学编程ve a decimal variable x0. I want to make a vector from [x0, 6] increasing by 0.01 each time.

I ha开发者_如何学编程ve a decimal variable x0.

I want to make a vector from [x0, 6] increasing by 0.01 each time.

I know it's something like c(x0:6, by=0.01) but that didn't work.


x0 = 5.9
seq(x0, 6, 0.01)
 [1] 5.90 5.91 5.92 5.93 5.94 5.95 5.96 5.97 5.98 5.99 6.00
0

精彩评论

暂无评论...
验证码 换一张
取 消