« first day (1438 days earlier)      last day (1737 days later) » 

8:37 AM
Does this look like a coding question? stackoverflow.com/questions/26053966/…
 
 
5 hours later…
1:59 PM
Is it possible to have an S3 method ([.matrix) handling matrix subsetting? Just defining one isn't sufficient as the primitive never calls it. Background: stackoverflow.com/q/26060476/1412059
 
2:15 PM
@Roland Probably not, because [ is just a call with .Primitive and and S3 dispatch is handled inside that code and need not be standard S3 dispatch (as compared to, say, as.data.frame which dispatches via a UseMethod call and therefore has standard dispatch semantics).
 
@Roland Isn't that what xts and zoo do? Paging @JoshuaUlrich ...
 
@DirkEddelbuettel Sort of. They ultimately call the primitive after creating integer representations of i and j
@Roland Maybe the simplest solution would be to make a safematrix class, where [.safematrix checks if i or j are factor before calling NextMethod.
 

« first day (1438 days earlier)      last day (1737 days later) »