seqR | R Documentation |
sequence given by range or vector of values.
seqR(range, from = NA, to = NA, extend = 0, warn = TRUE, ...)
range |
vector with 2 values (1st taken as |
from |
start value of sequence. DEFAULT: NA (determined from range) |
to |
end value of sequence. DEFAULT: NA (determined from range) |
extend |
Factor f passed to |
warn |
Logical: warn about non-numeric classes? DEFAULT: TRUE |
... |
further arguments passed to |
Numeric vector.
Berry Boessenkool, berry-b@gmx.de, Feb 2014
seq
, range
,
https://web.archive.org/web/20190107005108/https://r.789695.n4.nabble.com/seq-range-argument-td4684627.html
seqR(range=c(12,6), by=-2)
m <- c(41, 12, 38, 29, 50, 39, 22)
seqR(m, len=6)
# Takes min and max of range if the vector has more than two elements.
seqR(range=c(12,6), by=-2, extend=0.1)
# internaly calls extendrange with f=extend
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.