Try this:

for(x in seq(0, 10, by = 0.1))


On Fri, May 21, 2010 at 3:18 PM, Robert U <tacsun...@yahoo.fr> wrote:

> Dear R-users,
>
> I'm trying to make the following loop: for (x in 0 : 10) and i would like x
> to be decimals rather than integers, giving a x range of e.g. 0.0 0.1 0.2
> 0.3 ... 9.9, 10. Would anyone know how to do that ?
>
> with regards,
>
>
>
>
>
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-help@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.
>
>


-- 
Henrique Dallazuanna
Curitiba-Paraná-Brasil
25° 25' 40" S 49° 16' 22" O

        [[alternative HTML version deleted]]

______________________________________________
R-help@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.

Reply via email to