Re: [Rd] head.matrix can return 1000s of columns -- limit to n or add new argument?

2019-11-02 Thread Gabriel Becker
As I hit send I realized I did know of one, which is table objects. So while we're discussing it we can talk about both generally and specifically what head.table and tail.table should do. Looks like tail.table is already special -cased to hit the matrix method if it is 2d, so the natural extension

Re: [Rd] head.matrix can return 1000s of columns -- limit to n or add new argument?

2019-11-02 Thread Gabriel Becker
Thanks Martin and Peter, I agree that we can be careful and narrow and still see a nice improvement in behavior. While Herve's point is valid and I understand his frustration, I think staying within the matrix vs c(matrix, array) space is the right scope for this work in terms of fiddling with in