I didn't see anything on this in the bug reports, and a search of the
archives had lots of false positives when searching on "split" to be
helpful.
I don't view this as particularly interesting or useful, but wanted to
report it because I stumbled on it (and don't remember ever seeing
"invalid per
This is odd, I think it may have something to do with this
> f <- interaction(list(iris[,1], iris[,2]))
> f[16]
[1]
> unclass(f)[16]
[1] 785
> nlevels(f)
[1] 781
Maybe do_split dereferencing beyond allocated memory?
> interaction(list(iris[,1], iris[,2]), sep="-")
does not produce at index 16
On 04/05/2010 6:45 PM, Matt Shotwell wrote:
This is odd, I think it may have something to do with this
Yes, it's definitely a bug in interaction() rather than split() per se.
I'll take a look and see if I can fix it.
Duncan Murdoch
f <- interaction(list(iris[,1], iris[,2]))
f[16]
This is now fixed in R-devel (revision 51908), and R-patched (r51909).
Thanks Jay for the nice reproducible example, and thanks Matt for
localizing it to the interaction() function.
Duncan Murdoch
On 04/05/2010 4:37 PM, Jay Emerson wrote:
I didn't see anything on this in the bug reports, and