Re: [Rpy] Modules install

2008-05-31 Thread chris
Silly me, worked it out after a while. Basically as pls has been added to R as a Library I needed to add the following to my rpy based script to call pls functions... r.library("pls") To allow me to access the commands Hope that helps someone in the future. Chris > Hi > > I'm new to RPy and

[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

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

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