2019-04-23
阅读量:
683
在R里seq函数咋用?
seq(from,to,length),
该函数的意思是生成一组数字,每个参数的意思是从from开始,到to结束,每两个数间的间隔是length,如
seq(2,10,2),会生成一组数:2 4 6 8 10
seq(from,to,length.out=by)表示生成一组从from到to的数量为num的数
by = ((to - from)/(length.out - 1))
附seq的其它用法:
seq(from, to)
seq(from, to, by= )
seq(from, to, length.out= )
seq(along.with= )
seq(from)
seq(length.out= )






评论(0)


暂无数据