Re: [Rd] unary class union of an S3 class

2016-03-18 Thread Michael Lawrence
On Fri, Mar 18, 2016 at 2:53 PM, Hervé Pagès wrote: > Hi, > > Short story > --- > > setClassUnion("ArrayLike", "array") > > showClass("ArrayLike") # no slot > > setClass("MyArrayLikeConcreteSubclass", > contains="ArrayLike", > representation(stuff="ANY") > ) > > sho

[Rd] for in r-devel

2016-03-18 Thread Gabor Grothendieck
Regarding, this news item for r-devel: ‘for()’ loops are generalized to iterate over any object with ‘[[’ and ‘length()’ methods. Thanks to Hervé Pagès for the idea and the patch. Below dd is an object for which [[ and length work but the result is still numeric rather than Date class in "R Unde