Generate a geometric sequence
geom_seq.Rd
Generate a geometric sequence
Arguments
- from
The first value in the sequence.
- to
The final value in the sequence.
- n
The number of points to include in the sequence.
Examples
geom_seq(from = 0.01, to = 10, n = 20)
#> [1] 0.01000000 0.01438450 0.02069138 0.02976351 0.04281332 0.06158482
#> [7] 0.08858668 0.12742750 0.18329807 0.26366509 0.37926902 0.54555948
#> [13] 0.78475997 1.12883789 1.62377674 2.33572147 3.35981829 4.83293024
#> [19] 6.95192796 10.00000000
geom_seq(from = 10, to = 20, n = 30)
#> [1] 10.00000 10.24190 10.48964 10.74338 11.00326 11.26942 11.54203 11.82122
#> [9] 12.10717 12.40004 12.69999 13.00720 13.32184 13.64409 13.97413 14.31216
#> [17] 14.65836 15.01294 15.37610 15.74804 16.12898 16.51913 16.91872 17.32798
#> [25] 17.74714 18.17643 18.61611 19.06643 19.52764 20.00000