# \dontshow{
set.seed(1)
# }
x <- rnorm(10)
n <- 10L
# 10 values evenly over the range of `x`
evenly(x, n = n)
# evenly spaced values, incrementing by 0.2
evenly(x, by = 0.2)
# evenly spaced values, incrementing by 0.2, starting at -2
evenly(x, by = 0.2, lower = -2)
Run the code above in your browser using DataLab