Re: [R] error message stops "for" command

From: Joris Meys <jorismeys_at_gmail.com>
Date: Wed, 16 Jun 2010 17:43:11 +0200

for (i in 1:100){
  if (i%%5==0) {print("And provide reproducible code.");next}   print("Before posting to the mailing list, I will read the posting guide.") }

Cheers
Joris

On Wed, Jun 16, 2010 at 5:37 PM, diana buitrago <dianacamila_at_gmail.com> wrote:
> Hello all,
> I am using a for statement to run a loop in R but I get an error message and
> the loop stops. I need that the loop continues til the end. I know I can use
> the NEXT command but I donīt know how the sintax woul be for this particular
> situation.
>
> Any suggestions?
Reading the posting guide?
>
> Thanks,
>
> Diana Buitrago
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> 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.
>
>

-- 
Joris Meys
Statistical consultant

Ghent University
Faculty of Bioscience Engineering
Department of Applied mathematics, biometrics and process control

tel : +32 9 264 59 87
Joris.Meys_at_Ugent.be
-------------------------------
Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php

______________________________________________
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.
Received on Wed 16 Jun 2010 - 15:45:59 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 16 Jun 2010 - 16:10:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive