On Fri, May 06, 2011 at 12:11:30PM -0700, Schatzi wrote:
> In Matlab, an array can be created from 1 - 30 using the command similar to R
> which is 1:30. Then, to make the array step by 0.1 the command is 1:0.1:30
> which is 1, 1.1, 1.2,...,29.9,30. How can I do this in R?
> ...

This may well be a hack, but

> 10:300/10

seemed to do it for me.

Peace,
david
-- 
David H. Wolfskill                              r...@catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

Attachment: pgpGpFjB08hOL.pgp
Description: PGP signature

______________________________________________
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