Sequence, evenly spaced on a logarithmic scale

seq_log(from, to, length.out)

Arguments

from

the starting and (maximal) end values of the sequence. Of length 1 unless just from is supplied as an unnamed argument.

to

the starting and (maximal) end values of the sequence. Of length 1 unless just from is supplied as an unnamed argument.

length.out

desired length of the sequence. A non-negative number, which for seq and seq.int will be rounded up if fractional.

Examples

seq_log(1, 1000, 4)
#> [1] 1 10 100 1000
seq_log(1, 100, 5)
#> [1] 1.000000 3.162278 10.000000 31.622777 100.000000