seqRan | R Documentation |
Create a sequence of defined length over range of a vector
seqRan(x, length.out = NULL, rel.ext = c(0, 0), na.rm = TRUE, ...)
x |
Numeric vector |
length.out |
Length of sequence to create, Defaults to length
of |
rel.ext |
Relative extention of sequence limits.
Default |
na.rm |
Logical. Should NAs be removed (see |
... |
Additional parameters to pass to |
Vector
x <- c(0,1,3,4) seqRan(x) # default settings. Returns vector of length of x seqRan(x, 10) # using original range of x seqRan(x, 10, c(-0.1, 0.1)) # using extended range of x
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.