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
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.