seq_row()
creates a sequence along the number of rows of x
,
seq_col()
a sequence along the number of columns of x
.
seq_len0()
and seq_along0()
are the 0-based counterparts to base::seq_len()
and
base::seq_along()
.
seq_row(x) seq_col(x) seq_len0(n) seq_along0(x)
x | :: |
---|---|
n | :: |
seq_len0(3)#> [1] 0 1 2