Skip to content
Prev 366141 / 398502 Next

Infelicity in print output with matrix indexing of `[.data.frame`

Can we agree that it is most ironic that `[<-.data.frame` does not impose coercion on its `x` argument with a 2 column matrix as `i`, but that `[.data.frame` does? I had initially assumed that the coercion had occurred at the time of assignment which would have made more sense (to me, anyway).