Skip to content
Prev 74884 / 398502 Next

problem with for()

On Wed, 2005-08-03 at 23:24 +0200, Simone Gabbriellini wrote:
No....the indexing of R objects is 1 based. Thus your first loop tried
to set i[0], which is a non-existent entry.
[1] 0 1 2 3 4 5
numeric(0)
[1] 0

HTH,

Marc Schwartz