Re: [R] VERY basic question about S4 classes

2010-04-21 Thread Duncan Murdoch
On 21/04/2010 7:00 AM, Albert-Jan Roskam wrote: Hi, I'm new to R and S4 classes. I defined a class with two methods (myMethod1 and myMethod2). I want to call myMethod1 within myMethod2. Why does the code below not work? The name 'myMethod1' doesn't appear to have meaning inside myMethod2, even

[R] VERY basic question about S4 classes

2010-04-21 Thread Albert-Jan Roskam
Hi,   I'm new to R and S4 classes. I defined a class with two methods (myMethod1 and myMethod2). I want to call myMethod1 within myMethod2. Why does the code below not work? The name 'myMethod1' doesn't appear to have meaning inside myMethod2, even though the two methods belong to the same clas