Learn R Programming

rdetools (version 1.0)

logspace: Logarithmically spaced sequence generation

Description

Function generates a logarithmically spaced sequence of n values between decades $10^l$ and $10^u$.

Usage

logspace(l, u, n)

Arguments

l
$10^l$ will be the lower value to start from
u
$10^u$ will be the upper value to end with
n
number of values to generate

Value

Logarithmically spaced sequence of length n between $10^l$ and $10^u$.

See Also

seq, selectmodel

Examples

Run this code
## generate 100 logarithmically spaced values between 10^(-3) and 10^3
logspace(-3, 3, 100)

Run the code above in your browser using DataLab