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
原文地址:https://www.cnblogs.com/xihehe/p/8305844.html