Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating Data frames from Tagged lists #26

Closed
lgautier opened this issue Nov 23, 2009 · 2 comments
Closed

Creating Data frames from Tagged lists #26

lgautier opened this issue Nov 23, 2009 · 2 comments

Comments

@lgautier
Copy link
Member

Original report by Anonymous.


When I attempt to create an R Data frame from a tagged list, I obtain the following error:

Traceback (most recent call last):
File "<pyshell#51>", line 1, in
baseNameSpaceEnv["data.frame"]
NameError: name 'baseNameSpaceEnv' is not defined

@lgautier
Copy link
Member Author

Original comment by Laurent Gautier (Bitbucket: lgautier, GitHub: lgautier).


There might be a bug, but the details of what you are doing and what is the exact error message returned (with its traceback) are needed in order to assess whether this is really the case.

@lgautier
Copy link
Member Author

Original comment by Anonymous.


Here's what I did:

First I created a tagged list like so:

#!python

data = rlc.TaggedList([pHs, CSs], tags = ('x','y'))

where pHs and CSs are both python lists. Then I tried to create a data frame:

#!python

dataf = robjects.r.RDataFrame(data)

and received the following error message:

#!python

Traceback (most recent call last):
  File "<pyshell#36>", line 1, in <module>
    dataf = robjects.RDataFrame(data)
  File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/rpy2/robjects/__init__.py", line 372, in __init__
    df = baseNameSpaceEnv["data.frame"].rcall(tlist.items())
ValueError: All parameters must be of type Sexp_Type.

@lgautier lgautier transferred this issue from another repository Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant