[R] Looping and break
Rolf Turner
r.turner at auckland.ac.nz
Tue Mar 3 03:23:57 CET 2015
On 03/03/15 15:04, Jeff Newmiller wrote:
> Your example is decidedly not expressed in R, though it looks like
> you tried. Can you provide the hand-computed result that you are
> trying to obtain?
>
> Note that the reason you cannot find anything about next or break in
> R is that they don't exist.
Point of order, Mr. Chairman, but they ***do*** exist. See e.g ?"next"
(which actually takes you to the help for "Control Flow").
> There are generally alternative ways to
> accomplish the kinds of things you might want to accomplish without
> them, and those alternatives often don't involve explicit loops at
> all.
Otherwise I concur with everything you say.
cheers,
Rolf
--
Rolf Turner
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276
Home phone: +64-9-480-4619
More information about the R-help
mailing list