Displaying 6 results from an estimated 6 matches for "anotherfoo".
2016 Mar 18
2
unary class union of an S3 class
...)
showClass("MyArrayLikeConcreteSubclass") # 2 slots!!
That doesn't seem right.
Long story
----------
S4 provides at least 3 ways to create a little class hierarchy
like this:
FooLike ............. virtual class with no slot
^ ^
| |
foo anotherfoo ..... 2 concrete subclasses
(1) The "standard" way: define FooLike first, then foo and anotherfoo
as subclasses of FooLike:
setClass("FooLike")
setClass("foo",
contains="FooLike",
representation(stuff="ANY")
)
setClass(...
2016 Mar 19
2
unary class union of an S3 class
...39;t seem right.
>
> Long story
> ----------
>
> S4 provides at least 3 ways to create a little class hierarchy
> like this:
>
> FooLike ............. virtual class with no slot
> ^ ^
> | |
> foo anotherfoo ..... 2 concrete subclasses
>
> (1) The "standard" way: define FooLike first, then foo and anotherfoo
> as subclasses of FooLike:
>
> setClass("FooLike")
>
> setClass("foo",
> contains="FooLike",
>...
2016 Mar 18
0
unary class union of an S3 class
...) # 2 slots!!
>
> That doesn't seem right.
>
> Long story
> ----------
>
> S4 provides at least 3 ways to create a little class hierarchy
> like this:
>
> FooLike ............. virtual class with no slot
> ^ ^
> | |
> foo anotherfoo ..... 2 concrete subclasses
>
> (1) The "standard" way: define FooLike first, then foo and anotherfoo
> as subclasses of FooLike:
>
> setClass("FooLike")
>
> setClass("foo",
> contains="FooLike",
> representation(stu...
2016 Mar 19
2
unary class union of an S3 class
...-------
>
> S4 provides at least 3 ways to create a little class hierarchy
> like this:
>
> FooLike ............. virtual class with no slot
> ^ ^
> | |
> foo anotherfoo ..... 2 concrete subclasses
>
> (1) The "standard" way: define FooLike first, then foo and
> anotherfoo
> as subclasses of FooLike:
>
> setClass("FooLike")
>
> setClass("foo",
>...
2016 Mar 19
0
unary class union of an S3 class
...story
>> ----------
>>
>> S4 provides at least 3 ways to create a little class hierarchy
>> like this:
>>
>> FooLike ............. virtual class with no slot
>> ^ ^
>> | |
>> foo anotherfoo ..... 2 concrete subclasses
>>
>> (1) The "standard" way: define FooLike first, then foo and anotherfoo
>> as subclasses of FooLike:
>>
>> setClass("FooLike")
>>
>> setClass("foo",
>> cont...
2016 Mar 19
0
unary class union of an S3 class
...provides at least 3 ways to create a little class
>> hierarchy
>> like this:
>>
>> FooLike ............. virtual class with no slot
>> ^ ^
>> | |
>> foo anotherfoo ..... 2 concrete subclasses
>>
>> (1) The "standard" way: define FooLike first, then foo and
>> anotherfoo
>> as subclasses of FooLike:
>>
>> setClass("FooLike")
>>
>>...