Re: [Rd] Question about copying reference objects using the initialize method

2011-11-02 Thread Martin Morgan
On 11/02/2011 08:16 AM, Aleix Ruiz de Villa wrote: Martin, thanks. So then I should use options (3) or (4). That's all. Is there an efficient way to initialize arguments if I have a long list of arguments? maybe using a 'list'? so that the header of the function is displayed in a friendly style?

Re: [Rd] Question about copying reference objects using the initialize method

2011-11-02 Thread Aleix Ruiz de Villa
Martin, thanks. So then I should use options (3) or (4). That's all. Is there an efficient way to initialize arguments if I have a long list of arguments? maybe using a 'list'? so that the header of the function is displayed in a friendly style? Thanks again! 2011/11/1 Martin Morgan : > On 10/31

Re: [Rd] Question about copying reference objects using the initialize method

2011-11-01 Thread Martin Morgan
On 10/31/2011 08:53 AM, Aleix Ruiz de Villa wrote: Dears, I have a question about copying reference objects using the initialize method. 1) If the latter has no arguments, there is no problem to copy an object. myClass = setRefClass("myClass", fields = list(value = "numeric") ) myClass$method

[Rd] Question about copying reference objects using the initialize method

2011-11-01 Thread Aleix Ruiz de Villa
Dears, I have a question about copying reference objects using the initialize method. 1) If the latter has no arguments, there is no problem to copy an object. myClass = setRefClass("myClass", fields = list(value = "numeric") ) myClass$methods(initialize = function(...){   value <<- 1   callS