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

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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