函數(shù)功能:
Generate regular sequences.
產(chǎn)生序列
函數(shù)語法:
seq(from = 1, to = 1, by = ((to - from)/(length.out - 1)),
length.out = NULL, along.with = NULL, ...)
函數(shù)參數(shù):
from, to
the starting and (maximal) end values of the sequence.
Of length 1 unless just from is supplied as an unnamed argument.
序列的起始值和結(jié)束值。
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.
序列的長度,非負數(shù)值;若為小數(shù)進行四舍五入
along.with
take the length from the length of this argument.
與哪個變量長度相同

官方文檔seq( )函數(shù)
|