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
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