[R] scope of variable/object ?

2006-04-27 Thread Tim Smith
Hi, I must be missing something here...Essentially, a short piece of code works if it's standalone, but doesn't work if it's divided into two functions. The code that works is: ### WORKS ### library(pamr) set.seed(120) x -

Re: [R] scope of variable/object ?

2006-04-27 Thread Gabor Grothendieck
You probably need to contact the developer of pamr but short of investigating it, a workaround might be to put a copy of myd2 into the global environment since it likely will at least look there, e.g. add this line to: assign(myd2, myd2, .GlobalEnv) domat. On 4/27/06, Tim Smith [EMAIL