Can't create new data set in R Commander
December 15, 2010 7:33 AM Subscribe
Running R Commander (GUI for the stats package R) on my Mac — or at least I would be, if I could create a new data set. The menu item Data—>New Data Set seems to be missing. As such, I can't input any data.
This menu item seems to be very important.
Any suggestions? I have already tried uninstalling and reinstalling both R and R Commander. I have also tried installing R Commander from two different mirrors. All of the other menu items are there; it's just this one EXTREMELY IMPORTANT item that is missing.
I'm running R in 32-bit mode on my Macbook Pro, which is in 32-bit mode. Mac OS 10.6.5.
Thanks in advance!
This menu item seems to be very important.
Any suggestions? I have already tried uninstalling and reinstalling both R and R Commander. I have also tried installing R Commander from two different mirrors. All of the other menu items are there; it's just this one EXTREMELY IMPORTANT item that is missing.
I'm running R in 32-bit mode on my Macbook Pro, which is in 32-bit mode. Mac OS 10.6.5.
Thanks in advance!
As a work around, can you
x<-data.frame()
and edit it? Or
x<-data.frame(matrix(0,nrow=1,ncol=mynumberofcolumns))
to start off with the right number of columns. Unless it's toy data, you're better off importing it.
posted by a robot made out of meat at 9:06 AM on December 15, 2010
x<-data.frame()
and edit it? Or
x<-data.frame(matrix(0,nrow=1,ncol=mynumberofcolumns))
to start off with the right number of columns. Unless it's toy data, you're better off importing it.
posted by a robot made out of meat at 9:06 AM on December 15, 2010
Best answer: Seconding jet_silver... if you create a text (or CSV or any number of other filetypes that R can read) file then you should be able import it with read.table() without any trouble. As long as you're in the proper working directory, should be doable in one line:
datasetname<-read.table("filename.txt", h=T)
(or ignore h=T if you don't have headers)
On preview: ack, too slow! Well, still a different alternative.
posted by SymphonyNumberNine at 9:10 AM on December 15, 2010
datasetname<-read.table("filename.txt", h=T)
(or ignore h=T if you don't have headers)
On preview: ack, too slow! Well, still a different alternative.
posted by SymphonyNumberNine at 9:10 AM on December 15, 2010
Response by poster: I think SymphonyNumberNine takes the cake for ease. I just downloaded R Commander; previous to this I've been using Excel and I still feel pretty attached :-).
Thanks to all for your suggestions.
posted by dondiego87 at 9:35 AM on December 15, 2010 [1 favorite]
Thanks to all for your suggestions.
posted by dondiego87 at 9:35 AM on December 15, 2010 [1 favorite]
This thread is closed to new comments.
posted by jet_silver at 8:43 AM on December 15, 2010