getting Arrays and variables from R

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nicolas Lebas

    getting Arrays and variables from R

    hello,

    i don't know if this is the best list to send this question, but i'm
    already trying to ask.

    I need to import variables from .RData files (arrays or variables).
    I'm trying to use the rpy module, but without success beccause when i
    try to access to a variable loaded from the .RData file i have a
    segmentation fault !

    This is what i'm doing :
    - in R-projet, i create a .RData file with some variables :[color=blue]
    > tab<-c(2,5,8,6)
    > v<-0.5
    > save.image("fil e.RData")[/color]

    - in Python :[color=blue]
    > from rpy import *
    > r.load("file.RD ata")[/color]
    ['tab', '.Traceback', 'v'][color=blue]
    > r.tab[/color]
    segmentation fault !

    I don't understand very well what does python crash.

    If someone has an idea to solve my problem or to give me a method which
    permit to import arrays and variables from .RData files with another module.

    Thanks

    Nicolas
Working...