Julio Sergio <juliosergio <at> gmail.com> writes:

> 
> I'm trying to produce a series of powers of a number as follows:
> 
>   |> 0.05^0:5


I'm sorry for the question. The answer is simple: the result is due to
operator precedence not to coercing:

  |> 0.05^(0:5)
  [1] 1.000e+00 5.000e-02 2.500e-03 1.250e-04 6.250e-06 3.125e-07

______________________________________________
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.

Reply via email to