Henrik,
Your last suggestion did not work for me. It seems like it does not allow me
to create a ClassB object with 3 arguments:
setConstructorS3(ClassA, function(A=15, x=NA) {
+ extend(Object(), ClassA,
+.size = A,
+.x=x
+ )
+ })
setConstructorS3(ClassB, function(..., bData=NA) {
+
Correction. My solution didn't work either Didn't return the correct
values. Can you post an example that takes three arguments? I'm working on
how to do this now.
thanks...sorry. Im new to R and R.oo.
Ben
On Mon, Aug 29, 2011 at 8:35 AM, Ben qant ccqu...@gmail.com wrote:
Henrik,
Your
Hi,
comments below.
On Mon, Aug 29, 2011 at 8:12 AM, Ben qant ccqu...@gmail.com wrote:
Correction. My solution didn't work either Didn't return the correct
values. Can you post an example that takes three arguments? I'm working on
how to do this now.
thanks...sorry. Im new to R and R.oo.
If someone is able, can you tell me if there is a better way to do this?
More specifically, do I have to rewrite all of the data members stuff and
extend stuff of parent class in the child class? See below. Thanks in
advance!
Example 1:
setConstructorS3(ClassA, function(A,x) {
Hi.
On Fri, Aug 26, 2011 at 8:58 AM, Ben qant ccqu...@gmail.com wrote:
If someone is able, can you tell me if there is a better way to do this?
More specifically, do I have to rewrite all of the data members stuff and
extend stuff of parent class in the child class?
No.
See below. Thanks
5 matches
Mail list logo