seq(from, to, by, length.out)
seq(from=1, to=5) | 1 2 3 4 5 |
seq(from=1, to=10, by=2) | 1 3 5 7 9 |
seq(from=5, to=1) | 5 4 3 2 1 |
seq(from=10, to=1, by=-2) | 10 8 6 4 2 |
seq(from=1, length.out=5) | 1 2 3 4 5 |
seq(to=10, length.out=5) | 6 7 8 9 10 |
seq_len(...)
seq_len(...) | Nel caso seq(from, to, by, length.out) |
seq_along(x) | Genera gli indici per l’oggetto x. Come seq(length.out(length(x))) |