[R] logarithmic seq() ?
David Winsemius
dwinsemius at comcast.net
Mon Sep 21 21:36:28 CEST 2009
On Sep 21, 2009, at 2:47 PM, Oliver Bandel wrote:
> Hello,
>
>
> in scilab /Matlab there are functions that can create linear
> sequences (like R's
> seq()) as well as logarithmic sequences.
>
>
> Is there a logarithmic aequivalent of seq()?
> Or maybe this would be an idea for newer R-releases,
> maybe a type-option with "linear" and "logarithmic" as
> parameters....?!
>
A question came up recently to which the answer something along the
lines of:
exp( seq(log(x[1], log(x[length(x)]), length.out=6) )
Is that what you meant by a logarithmic sequence? Or would it be:
log(1:10) # ?
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list