lseq: 'lseq' output a sequence of logarithmically spaced numbers.

Description Usage Arguments Value See Also Examples

View source: R/lseq.R

Description

lseq works like seq in that it returns a vector of numbers
with from as the first element, to as the last elelemnt, and
length.out as the length of the vector,
but the values are
logarithmically spaced.

Usage

1
lseq(from, to, length.out = 10)

Arguments

from

first number in the sequence.

to

last number in the sequence.

length.out

length of the sequence, a positive integer > 1

Value

A numeric vector.

See Also

seq

Examples

1
2
plot(c(0.1,10), c(0,1))
abline(v = lseq(0.1, 10, length.out = 20), col="#3366FF66")

harrig12/pointszr documentation built on April 10, 2020, 10:45 p.m.