Re: [Rd] setClass inside a function

2007-04-24 Thread Iago Mosqueira
Hi Martin, Thanks very much, your suggestion on the "where" argument did the trick. Many thanks, Iago > > "Iago Mosqueira (Cefas)" <[EMAIL PROTECTED]> writes: > > > Hi Martin, > > > > Thanks very much for your help. > > > >> Hi Iago -- > >> > >> Here's my attempt at an answer

Re: [Rd] setClass inside a function

2007-04-20 Thread Martin Morgan
"Iago Mosqueira (Cefas)" <[EMAIL PROTECTED]> writes: > Hi Martin, > > Thanks very much for your help. > >> Hi Iago -- >> >> Here's my attempt at an answer. >> >> "Iago Mosqueira (Cefas)" <[EMAIL PROTECTED]> writes: >> >> > set of S4 classes. But setClass is choking when my function >> is calle

Re: [Rd] setClass inside a function

2007-04-20 Thread Iago Mosqueira \(Cefas\)
Hi Martin, Thanks very much for your help. > > Hi Iago -- > > Here's my attempt at an answer. > > "Iago Mosqueira (Cefas)" <[EMAIL PROTECTED]> writes: > > > Hello, > > > > I would like to create a function that gets passed a class name and > > then calls setClass, and a few other functions, i

Re: [Rd] setClass inside a function

2007-04-20 Thread Martin Morgan
Hi Iago -- Here's my attempt at an answer. "Iago Mosqueira (Cefas)" <[EMAIL PROTECTED]> writes: > Hello, > > I would like to create a function that gets passed a class name and > then calls setClass, and a few other functions, inside. I have done > this in the past with setmethod, creating acces

[Rd] setClass inside a function

2007-04-19 Thread Iago Mosqueira \(Cefas\)
Hello, I would like to create a function that gets passed a class name and then calls setClass, and a few other functions, inside. I have done this in the past with setmethod, creating accessors for all slots in a set of S4 classes. But setClass is choking when my function is called isnide a pa