seq2 | R Documentation |
Generate regular sequences.
seq2(from, to, by, length.out, along.with, endpoint, ...)
from , to |
the starting and (maximal) end values of the sequence. Of
length 1 unless just |
by |
number: increment of the sequence. |
length.out |
desired length of the sequence. A negative number will return a zero-length array, while a non-negative number will be rounded up if fractional. |
along.with |
take the length from the length of this argument. |
endpoint |
if the last element of the result is equal to |
... |
unused, to match the signature of
|
A negative length.out
will return a zero-length array, unlike
seq
where an error would be raised.
Additionally, specifying to - from
and by
of opposite signs
will return a zero-length array, unlike seq
where an error would be
thrown.
A vector of type "integer"
or "double"
.
seq2(from = 26, endpoint = TRUE )
seq2(from = 26, endpoint = FALSE)
seq2(from = 0, endpoint = TRUE )
seq2(from = 0, endpoint = FALSE)
seq2(from = -26, endpoint = TRUE )
seq2(from = -26, endpoint = FALSE)
seq2(from = letters, endpoint = TRUE )
seq2(from = letters, endpoint = FALSE)
seq2(to = 26, endpoint = TRUE )
seq2(to = 26, endpoint = FALSE)
seq2(to = -24, endpoint = TRUE )
seq2(to = -24, endpoint = FALSE)
seq2(by = 26, endpoint = TRUE )
seq2(by = 26, endpoint = FALSE)
seq2(by = 0, endpoint = TRUE )
seq2(by = 0, endpoint = FALSE)
seq2(by = -26, endpoint = TRUE )
seq2(by = -26, endpoint = FALSE)
seq2(length.out = 26, endpoint = TRUE )
seq2(length.out = 26, endpoint = FALSE)
seq2(length.out = 0, endpoint = TRUE )
seq2(length.out = 0, endpoint = FALSE)
seq2(length.out = -26, endpoint = TRUE )
seq2(length.out = -26, endpoint = FALSE)
seq2(along.with = letters, endpoint = TRUE )
seq2(along.with = letters, endpoint = FALSE)
seq2(from = 1, to = 26, endpoint = TRUE )
seq2(from = 1, to = 26, endpoint = FALSE)
seq2(from = 26, to = 1, endpoint = TRUE )
seq2(from = 26, to = 1, endpoint = FALSE)
seq2(from = 26, by = 1, endpoint = TRUE )
seq2(from = 26, by = 1, endpoint = FALSE)
seq2(from = -24, by = 1, endpoint = TRUE )
seq2(from = -24, by = 1, endpoint = FALSE)
seq2(from = 26, by = -1, endpoint = TRUE )
seq2(from = 26, by = -1, endpoint = FALSE)
seq2(from = -24, by = -1, endpoint = TRUE )
seq2(from = -24, by = -1, endpoint = FALSE)
seq2(from = 1, length.out = 26, endpoint = TRUE )
seq2(from = 1, length.out = 26, endpoint = FALSE)
seq2(from = 1, along.with = letters, endpoint = TRUE )
seq2(from = 1, along.with = letters, endpoint = FALSE)
seq2(to = 26, by = 1, endpoint = TRUE )
seq2(to = 26, by = 1, endpoint = FALSE)
seq2(to = -24, by = 1, endpoint = TRUE )
seq2(to = -24, by = 1, endpoint = FALSE)
seq2(to = 26, by = -1, endpoint = TRUE )
seq2(to = 26, by = -1, endpoint = FALSE)
seq2(to = -24, by = -1, endpoint = TRUE )
seq2(to = -24, by = -1, endpoint = FALSE)
seq2(to = 26, length.out = 26, endpoint = TRUE )
seq2(to = 26, length.out = 26, endpoint = FALSE)
seq2(to = 26, along.with = letters, endpoint = TRUE )
seq2(to = 26, along.with = letters, endpoint = FALSE)
seq2(by = 3, length.out = 26, endpoint = TRUE )
seq2(by = 3, length.out = 26, endpoint = FALSE)
seq2(by = 3, along.with = letters, endpoint = TRUE )
seq2(by = 3, along.with = letters, endpoint = FALSE)
seq2(from = -25, to = 25, by = 2, endpoint = TRUE )
seq2(from = -25, to = 25, by = 2, endpoint = FALSE)
seq2(from = 0, to = 25, length.out = 26, endpoint = TRUE )
seq2(from = 0, to = 25, length.out = 26, endpoint = FALSE)
seq2(from = 0, to = 25, along.with = letters, endpoint = TRUE )
seq2(from = 0, to = 25, along.with = letters, endpoint = FALSE)
seq2(from = 0, by = 2, length.out = 26, endpoint = TRUE )
seq2(from = 0, by = 2, length.out = 26, endpoint = FALSE)
seq2(from = 0, by = 2, along.with = letters, endpoint = TRUE )
seq2(from = 0, by = 2, along.with = letters, endpoint = FALSE)
seq2(to = 50, by = 2, length.out = 26, endpoint = TRUE )
seq2(to = 50, by = 2, length.out = 26, endpoint = FALSE)
seq2(to = 50, by = 2, along.with = letters, endpoint = TRUE )
seq2(to = 50, by = 2, along.with = letters, endpoint = FALSE)
seq2(length.out = 5)
seq2(0, 60, length.out = 21, endpoint = TRUE )
seq2(0, 60, length.out = 21, endpoint = FALSE)
seq2(0, 60, length.out = 20, endpoint = TRUE )
seq2(0, 60, length.out = 20, endpoint = FALSE)
seq2(60, length.out = 20, endpoint = FALSE)
seq2(-0.5, 0.5 - .Machine$double.eps/2, endpoint = FALSE)
seq2(-0.5, 0.5 - .Machine$double.eps/2, endpoint = TRUE )
seq2(-0.5, 0.5 - .Machine$double.eps/2, endpoint = FALSE, by = 1)
seq2(-0.5, 0.5 - .Machine$double.eps/2, endpoint = TRUE , by = 1)
seq2(-0.5, 0.5 , endpoint = FALSE)
seq2(-0.5, 0.5 , endpoint = TRUE )
seq2(-0.5, 0.5 , endpoint = FALSE, by = 1)
seq2(-0.5, 0.5 , endpoint = TRUE , by = 1)
seq2(-0.5, 0.5 + .Machine$double.eps/2, endpoint = FALSE)
seq2(-0.5, 0.5 + .Machine$double.eps/2, endpoint = TRUE )
seq2(-0.5, 0.5 + .Machine$double.eps/2, endpoint = FALSE, by = 1)
seq2(-0.5, 0.5 + .Machine$double.eps/2, endpoint = TRUE , by = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.