[R] for loop of a geometric sequence
MacQueen, Don
macqueen1 at llnl.gov
Wed Sep 4 21:51:28 CEST 2013
So look at the examples found in
?Control
and give it a try.
--
Don MacQueen
Lawrence Livermore National Laboratory
7000 East Ave., L-627
Livermore, CA 94550
925-423-1062
On 8/30/13 9:57 AM, "BJN1417" <BJN1417 at uncw.edu> wrote:
>so I have to create a for loop of the geometric sequence
>h(x,n)=1+x+x^2+x^3^4...x^n. I know that it would be easier to simply
>vectorize the sequence to x^(0:n), but I am required to make the loop,
>and I
>can't wrap my brain around how to loop it because the equation is so
>simple.
>
>
>
>--
>View this message in context:
>http://r.789695.n4.nabble.com/for-loop-of-a-geometric-sequence-tp4675035.h
>tml
>Sent from the R help mailing list archive at Nabble.com.
>
>______________________________________________
>R-help at 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.
More information about the R-help
mailing list