How to load a R data file?

asked 2015-11-21 20:00:04 +0200

roland gravatar image

How can I load a R data file?

I have uploaded Data2.csv. I tried:

  DataInit<-read.table(DATA+"Data2.csv", header=TRUE, sep=",")

This yields an error:

Traceback (most recent call last):    DataInit<-read.table(DATA+'Data2.csv', header=TRUE, sep=",")
  File "", line 1, in <module>

  File "/home/sage/sage-6.9/local/lib/python2.7/site-packages/sagenb-0.11.4-  py2.7.egg/sagenb/misc/", line 438, in syseval
return system.eval(cmd, sage_globals, locals = sage_globals)
TypeError: unbound method eval() must be called with R instance as first argument (got str instance instead)

Thanks for your kind support!

edit retag flag offensive close merge delete



Please tell us if you are working on your computer, on SageMathCloud at, or on some other environment. Also, are you using Sage's REPL (in the terminal), or a Sage Notebook worksheet (.sws), or a SageMathCloud Sage worksheet (.sagews), or a Jupyter Notebook worksheet (.ipynb)?

slelievre gravatar imageslelievre ( 2015-11-25 17:51:48 +0200 )edit