R语言学习笔记(十八):零碎知识点46-50

seq_along与seq_len函数的使用

在for循环中有用

> seq_along(c(2,3,5))
[1] 1 2 3
> seq_len(3)
[1] 1 2 3
posted @ 2018-01-17 20:38  嘻呵呵  阅读(485)  评论(0编辑  收藏  举报