I was wondering if anyone can help me with read.table. I have been trying to use it to read a txt file that I put in my current working directory. It just wont get it. I keep getting the error that that the new name I assigned to the file imorted is not found. Thanks, Nardos Desta
Please show us exactly what you did: or see the R Data Import/Export manual. On Sun, 30 Mar 2003, ndesta wrote:> I was wondering if anyone can help me with read.table. I have been trying to > use it to read a txt file that I put in my current working directory. It just > wont get it. I keep getting the error that that the new name I assigned to > the file imorted is not found.-- 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
Nardos, First, have you looked at the documentation for read.table, i.e., ?read.table Second, have you looked at the R import /export manual listed under the help menu? If so, then what parts of those instructions are not clear to you? Have you done a dir() command from the prompt to ensure you are in the same directory as the file you are trying to read? If all that is true, what is the command you are using, and what is the exact error message you are getting? This info will help us help you. steve ndesta wrote:> I was wondering if anyone can help me with read.table. I have been trying to > use it to read a txt file that I put in my current working directory. It just > wont get it. I keep getting the error that that the new name I assigned to > the file imorted is not found. > > Thanks, > Nardos Desta > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
ndesta <ndesta at vt.edu> writes:> I was wondering if anyone can help me with read.table. I have been > trying to use it to read a txt file that I put in my current working > directory. It just wont get it. I keep getting the error that that > the new name I assigned to the file imorted is not found. > > Thanks, > Nardos DestaIf you are running Rgui try mydata = read.table(file.choose()) which will bring up a chooser panel for you to click on the name of the file that you want.