Skip to contents

seq_double generates a sequence of numbers where each value is double the previous value in the sequence.

Usage

seq_double(start, len)

Arguments

start

The first number in the sequence.

len

The length of the sequence.

Value

A numeric vector

Examples

seq_double(1, 5)
#> [1]  1  2  4  8 16
seq_double(0.125, 10)
#>  [1]  0.125  0.250  0.500  1.000  2.000  4.000  8.000 16.000 32.000 64.000