Learn R Programming

slouch (version 2.1.5)

lseq: Logarithmically spaced sequence

Description

Logarithmically spaced sequence

Usage

lseq(from = 1, to = 1e+05, length.out = 6)

Value

A sequence of logarithmically spaced numbers.

Arguments

from

the starting value of the sequence. Must be positive.

to

the terminal value of the sequence. Must be larger than input to "from".

length.out

desired length of the sequence. Must not be negative.

Examples

Run this code
lseq(1, 1000, length.out = 4)

Run the code above in your browser using DataLab