Re: [Rpy] Please help: invalid 'envir' argument

2008-06-01 Thread Barry Rowlingson
[EMAIL PROTECTED] wrote: > r.DataName (whatever DataName might be) not as I had it r.data > > and Barry pre-empting my next error message with > > rpy.set_default_mode(rpy.NO_CONVERSION) > > Shouls rpy.set_default_mode(rpy.NO_CONVERSION) be set as standard in Rpy > scripts? > Well, it depen

Re: [Rpy] Please help: invalid 'envir' argument

2008-06-01 Thread chris
Thank you Barry and Laurent, So two things for me to make sure I remember... r.DataName (whatever DataName might be) not as I had it r.data and Barry pre-empting my next error message with rpy.set_default_mode(rpy.NO_CONVERSION) Shouls rpy.set_default_mode(rpy.NO_CONVERSION) be set as standard

Re: [Rpy] Please help: invalid 'envir' argument

2008-06-01 Thread Barry Rowlingson
[EMAIL PROTECTED] wrote: > Thanks for that Barry thats much clearer now, I had done print yarn, and > didn't understand why it had returned the string "yarn". Its all clear now > though. > > Making the change you suggest though moves me forward but then throws the > following error > "Traceback (m

Re: [Rpy] Please help: invalid 'envir' argument

2008-06-01 Thread Laurent Gautier
2008/6/1 <[EMAIL PROTECTED]>: > Thanks for that Barry thats much clearer now, I had done print yarn, and > didn't understand why it had returned the string "yarn". Its all clear now > though. > > Making the change you suggest though moves me forward but then throws the > following error > "Traceba

Re: [Rpy] Please help: invalid 'envir' argument

2008-06-01 Thread chris
Thanks for that Barry thats much clearer now, I had done print yarn, and didn't understand why it had returned the string "yarn". Its all clear now though. Making the change you suggest though moves me forward but then throws the following error "Traceback (most recent call last): File "pls.py",

Re: [Rpy] Please help: invalid 'envir' argument

2008-05-31 Thread Barry Rowlingson
> When playing with Rpy, it's alwys a good idea to check every step is > doing as you expect. If you look at your Python variable 'R' you'll see > something: > > >>> yarn=r.data('yarn',package='pls') > >>> yarn > 'yarn' > Oops, I meant "look at your Python variable 'yarn'". It's alwa

Re: [Rpy] Please help: invalid 'envir' argument

2008-05-31 Thread Barry Rowlingson
[EMAIL PROTECTED] wrote: > The following code (taken from the pls package manual) works in R... > > > > data(yarn) > from rpy import * > r.library("pls") > > yarn=r.data('yarn', package="pls") > Its probably a newbie error but I'd really appreciate it if someone can > tell me what it is I'm d

[Rpy] Please help: invalid 'envir' argument

2008-05-31 Thread chris
The following code (taken from the pls package manual) works in R... data(yarn) nir.pcr <- pcr(density ~ NIR, ncomp = 9, data = yarn, validation = "CV") plot(nir.pcr, ncomp = 5) plot(nir.pcr, "scores") Trying to translate this into RPy i get the following... from rpy import * r.library("pl