[R] Replace is leaking?
zhou.zfang at gmail.com
Thu May 28 02:36:13 CEST 2009
Okay, someone explain this behaviour to me:
Browse> replace(rep(0, 4000), temp1 , temp2)
Browse> replace(rep(0, 4000), 3926 , temp2)
For some reason, R seems to shift indices along when doing this replacement.
Has anyone encountered this bug before? It seems to crop up from time
to time, seemingly at random. Any idea for a fix? Reassigning the
variables seems to preserve the magicness of the numbers. It all seems
very bizarre and worrying.
If anyone is interested in a R workspace to reproduce this, email me.
This is running in R 2.9.
More information about the R-help