Re: [R] Setting Derived Class Slots

2013-07-17 Thread Steve Creamer
Hi Simon.many thanks to you for your explanation. - I'll check out setReplaceMethod. Point taken on nomenclature too... -- View this message in context: http://r.789695.n4.nabble.com/Setting-Derived-Class-Slots-tp4671683p4671738.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] Setting Derived Class Slots

2013-07-17 Thread Steve Creamer
Dohso simple when you know how! That worked straightaway! Thank you Martin! -- View this message in context: http://r.789695.n4.nabble.com/Setting-Derived-Class-Slots-tp4671683p4671737.html Sent from the R help mailing list archive at Nabble.com. ___

Re: [R] Setting Derived Class Slots

2013-07-16 Thread Simon Zehnder
Hi Steve, it seems to me, that you want to pass an object inside of getDelayProfile. In this case you must use setReplaceMethod("getDelayProfile<-",) in your definition inside the virtual and of course also in the specification of OP_Appt. R does not know, that your function should give bac

Re: [R] Setting Derived Class Slots

2013-07-16 Thread Martin Morgan
On 07/16/2013 06:36 AM, Steve Creamer wrote: Dear AllI am really struggling with oo in R. Trying to set attributes of the base class in a derived class method but the slot is only populated in the method itself, not when I try to print out the object from the console. Code is library(RODBC)