How to load a R data file?
How can I load a R data file?
I have uploaded Data2.csv. I tried:
%R
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/support.py", 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!
Please tell us if you are working on your computer, on SageMathCloud at http://cloud.sagemath.com, 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)?