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