Re: [R] for loop incremented by 0.01

From: Erik Iverson <eriki_at_ccbr.umn.edu>
Date: Wed, 09 Jun 2010 11:48:00 -0500

not tested

for(i in seq(0, 1, by = 0.01)) {

   print(i)
}

Read FAQ 7.31 though.

suman dhara wrote:
> Sir,
> I want to use a for loop which will be incremented by 0.01 in 0 to 1.
> Please help.
>
> Regards,
> Suman Dhara
>
> [[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.



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 09 Jun 2010 - 16:52:47 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 09 Jun 2010 - 17:10:28 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