Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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!