How to Create a Vector with Intervals in R (Example Code)
In this tutorial you’ll learn how to create a vector with intervals in the R programming language.
Example: Apply seq Function to Create Numeric Vector with Intervals
seq(from = 1, # Applying seq function to = 30, by = 3) # [1] 1 4 7 10 13 16 19 22 25 28 |
seq(from = 1, # Applying seq function to = 30, by = 3) # [1] 1 4 7 10 13 16 19 22 25 28