gen_midp {lazy.tools} | R Documentation |
Generate n Equally Spaced Midpoints in [min,max]
gen_midp(min, max, n)
min |
The minimum value. |
max |
Them maximum value. |
n |
# of midpoints including min and max |
gen_midp( min, max, n )
is equivalent to
seq( min, max, len=n )
.
A vector of length n.
gen_midp( 0, 10, 6 )
gen_midp( 1, 11, 6 )
gen_midp( 0, 100, 11 )
gen_midp( 0, 100, 11 )