ght it was r(mod) originally; or is this error
telling me something else is wrong?
What does "numeric 'envir' arg not of length one" refer to anyway?
Chris
Chris Arthur wrote:
> Hi Gregory,
>
> Changing that to mod instead of r(mod) results in the following error
>
FAS )
RPy_RException: Error in eval(predvars, data, env) :
numeric 'envir' arg not of length one
which is why I had thought it was r(mod) originally; or is this error
telling me something else is wrong?
Chris
Gregory Warnes wrote:
>
>
>
> On Jun 10, 2008, at 9:20AM , Chris
.192149741284537, 0.212853642861587, 0.125771297078345,
0.0997013717387267, 0.0828133779757881, 0.101594355133454,
0.0676197309472983, 0.0464180488919544, 0.0438123140694563,
0.0514109154579986)
c"
Now I guess this is coming from r(mod); the numbers don't match accFAS.
I also have
rpy.set_defaul
quot;,"V35","V36","","V37","V38","V39","V40","V41","V42","V43","V44","V45","V46","V47","V48","","V49","V50",&q
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
7;m mucking it up. But can't see how.
r.data instead of yarn does the same thing
Chris
> [EMAIL PROTECTED] wrote:
>> The following code (taken from the pls package manual) works in R...
>>
>>
>>
>> data(yarn)
>
>> from rpy import *
>> r.li
..
Traceback (most recent call last):
File "pls.py", line 7, in
mod = r.pcr(formula, ncomp = 9, data = yarn, validation = "CV")
rpy.RPy_RException: Error in eval(predvars, data, env) : invalid 'envir'
argument
Its probably a newbi
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
>
ages/rpy.py", line 318, in __getitem__
obj = self.__dict__[name] = self.__dict__.get(name, self.get(name))
rpy.RPy_RException: Error in function (x, pos = -1, envir =
as.environment(pos), mode = "any", :
variable "mvr" was not fou
methods!
*: R Function "get" not found*
If I open a shell, start python, and run "from rpy import*", this is what I
see:
>>> from rpy import *
RHOME= /Library/Frameworks/R.framework/Resources
RVERSION= 2.5.1
RVER= 2051
RUSER= /Users/Chris
Loading Rpy version 2051 .. Do
10 matches
Mail list logo