Re: [Rd] seq_along and rep_along

2012-01-08 Thread robin hankin
hello Hadley thanks for this... > There are the flip operators of matlab, and rotating matrices/array by > multiples of 90 degrees. > arot() in the magic package does this (which is an operation frequently encountered in magic hypercubes) >> I'm always on the lookout for other array functiona

Re: [Rd] seq_along and rep_along

2012-01-08 Thread Hadley Wickham
> well put!  I would add, though, that t() generalizes to aperm(), > and the magic package contains  arev()  which is a generalization > of rev(). There are the flip operators of matlab, and rotating matrices/array by multiples of 90 degrees. > I'm always on the lookout for other array functional

Re: [Rd] seq_along and rep_along

2012-01-08 Thread robin hankin
hello folks [snip] > but it is frustrating when base > functionality only works with vectors, not matrices, or arrays. It > would be more compelling if (e.g.) t and rev also had dimension > arguments. > > Hadley > > -- well put! I would add, though, that t() generalizes to aperm(), and the magi