I'm trying to load a dataset into R, but I'm completely lost. This is probably due mostly to the fact that I'm a complete R newb, but it's got me stuck in a research project. I've tried just opening the text file in WordPad and copying the data directly into R, but it's too big and causes the program to crash. Any suggestions or assistance? I'm kinda desperate and lost. -- View this message in context: http://r.789695.n4.nabble.com/large-dataset-confused-tp4637476.html Sent from the R devel mailing list archive at Nabble.com.
On 23/07/2012 18:32, walcotteric wrote:> I'm trying to load a dataset into R, but I'm completely lost. This is > probably due mostly to the fact that I'm a complete R newb, but it's got me > stuck in a research project. > I've tried just opening the text file in WordPad and copying the data > directly into R, but it's too big and causes the program to crash. > > Any suggestions or assistance? I'm kinda desperate and lost.Yes, you are lost. The R posting guide is at http://www.r-project.org/posting-guide.html and will point you to the right list and also the manuals (at e.g. http://cran.r-project.org/manuals.html, and one of them seems exactly what you need). BTW, 'large dataset' is meaningless: when I asked a class of Statistics PhD students the answers differed by 7 orders of magnitude. -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
On 07/23/2012 12:32 PM, walcotteric wrote:> I'm trying to load a dataset into R, but I'm completely lost. This is > probably due mostly to the fact that I'm a complete R newb, but it's got me > stuck in a research project. > I've tried just opening the text file in WordPad and copying the data > directly into R, but it's too big and causes the program to crash. > > Any suggestions or assistance? I'm kinda desperate and lost.Check the manual about loading data: http://cran.r-project.org/doc/manuals/R-data.html If you're still having trouble, read the posting guide: http://www.r-project.org/posting-guide.html Follow its advice about reproducibility. Also, this question should have been directed to R-Help, not R-devel Regards, - Brian -- Brian G. Peterson http://braverock.com/brian/ Ph: 773-459-4973 IM: bgpbraverock
1) Move this off R-devel to R-help. 2) Read the IO manual here: http://cran.r-project.org/manuals.html 3) You probably want to look at the read.table() function's help page by typing ?read.table Michael On Mon, Jul 23, 2012 at 12:32 PM, walcotteric <walcott3 at msu.edu> wrote:> I'm trying to load a dataset into R, but I'm completely lost. This is > probably due mostly to the fact that I'm a complete R newb, but it's got me > stuck in a research project. > I've tried just opening the text file in WordPad and copying the data > directly into R, but it's too big and causes the program to crash. > > Any suggestions or assistance? I'm kinda desperate and lost. > > > > -- > View this message in context: http://r.789695.n4.nabble.com/large-dataset-confused-tp4637476.html > Sent from the R devel mailing list archive at Nabble.com. > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel
Hi, On Mon, Jul 23, 2012 at 1:32 PM, walcotteric <walcott3 at msu.edu> wrote:> I'm trying to load a dataset into R, but I'm completely lost. This is > probably due mostly to the fact that I'm a complete R newb, but it's got me > stuck in a research project. > I've tried just opening the text file in WordPad and copying the data > directly into R, but it's too big and causes the program to crash. > > Any suggestions or assistance? I'm kinda desperate and lost.Sure. First of all, you need to post to the R-help list, not the R-devel list. Then you need to read the Intro to R that came with R when you installed it. Then you need to read the posting guide for R-help, and provide the requested information, including: how big is your dataset? what format is it in? (text file isn't very informative) what R commands have you used? (read.table() perhaps) and so on. Also, what do you mean by "crash"? R stops working? You get an error message? Sarah -- Sarah Goslee http://www.functionaldiversity.org
On Mon, Jul 23, 2012 at 10:32:42AM -0700, walcotteric wrote:> I'm trying to load a dataset into R, but I'm completely lost. This is > probably due mostly to the fact that I'm a complete R newb, but it's got me > stuck in a research project.[...] Hmhh, becoming stuck in a "research project", because you are a "complete R newb"? Strange.... what kind of working style is this? What about first learning the tools you use?> I've tried just opening the text file in WordPad and copying the data > directly into R, but it's too big and causes the program to crash.[...] OMFG> > Any suggestions or assistance? I'm kinda desperate and lost.Looks like this is completely caused by yourself. Check your working style... ....and follow the hints to the docs that other people on this list suggested to you. There are a lot of good documentatiuons online. Even books for R are available. Look at the library of your "research institute"... Ciao, Oliver