[R] create arrays
David Wolfskill
r at catwhisker.org
Fri May 6 21:15:56 CEST 2011
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 at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20110506/c4af7b8c/attachment.bin>
More information about the R-help
mailing list