打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
seq()函数

函数功能:

Generate regular sequences. 

产生序列

函数语法:

seq(from = 1, to = 1, by = ((to - from)/(length.out - 1)),
    length.out = NULL, along.with = NULL, ...)

函数参数:

from, to	
the starting and (maximal) end values of the sequence. 
Of length 1 unless just from is supplied as an unnamed argument.

序列的起始值和结束值。

by	
number: increment of the sequence.

步长:序列的增量

length.out	
desired length of the sequence. A non-negative number, 
which for seq and seq.int will be rounded up if fractional.

序列的长度,非负数值;若为小数进行四舍五入

along.with	
take the length from the length of this argument.

与哪个变量长度相同

官方文档seq( )函数

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
R学习:R for Data Science 循环-迭代 purrr 函数代替 for 循环
在 DB2 通用数据库中自动生成数值序列
C# Sqlite 序列
MySQL序列解决方案
mysql创建序列--用于创建编码,自增字段
seq_along,seq_len,vector函数
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服