Learn R Programming

ramify (version 0.3.3)

logspace: Logarithmically-spaced Elements

Description

Construct a vector of n logarithmically-spaced elements from 10^a to 10^b.

Usage

logspace(a, b, n = 50, base = 10)

Arguments

a
base^a is the starting value of the sequence.
b
base^b is the final value of the sequence.
n
The number of samples to generate. Default is 50.
base
The base of the log space.

Value

A vector of logarithmically-spaced elements.

See Also

linspace, seq.