[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
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
[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
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
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",
> 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
[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
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