Re: [R] setMethod(min, myclass, ...)

2003-12-10 Thread Peter Ruckdeschel
Hello, first of all thank you for your reply to our help request. On Wed, 3 Dec 2003, John Chambers wrote: Thomas Stabla wrote: I have defined a new class setClass(myclass, representation(min = numeric, max = numeric)) and want to write accessor functions, so that for foo =

Re: [R] setMethod(min, myclass, ...)

2003-12-03 Thread John Chambers
Thomas Stabla wrote: Hello, I have defined a new class setClass(myclass, representation(min = numeric, max = numeric)) and want to write accessor functions, so that for foo = new(myclass, min = 0, max = 1) min(foo) # prints 0 max(foo) # prints 1 At first i created a generic

[R] setMethod(min, myclass, ...)

2003-12-02 Thread Thomas Stabla
Hello, I have defined a new class setClass(myclass, representation(min = numeric, max = numeric)) and want to write accessor functions, so that for foo = new(myclass, min = 0, max = 1) min(foo) # prints 0 max(foo) # prints 1 At first i created a generic function for min setGeneric(min,