seq | R Documentation |
Generate a numeric sequence.
Create a numeric vector that is a sequence starting at the first argument, ending at the second, and incrementing by the third.
seq(from, to, by)
rep()
, c()
, sample()
seq(0, 1, by = .2) #> [1] 0.0 0.2 0.4 0.6 0.8 1.0 ----------------------------------- # Sequences can go backwards: seq(100, 0, by = -10) #> [1] 100 80 60 40 20 0
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.