I'm having trouble replicating/understanding why that would happen since I do it all the time. The only thing that raises a hint of suspicion is using the blank space separator , but I'm pretty sure that's fine What does str() give? Possibly factors?
If you are sure that's happening as described, can you send a sample .txt ( won't get scrubbed) and your exact import code? Michael On Nov 17, 2011, at 11:49 AM, Alaios <ala...@yahoo.com> wrote: > Dear all I have a txt file with the following contents > 1 50.7906430000000 6.06349800000000 > 2 50.7907380000000 6.06347100000000 > 3 50.7910810000000 6.06338000000000 > 4 50.7911890000000 6.06355200000000 > > > I am usind read.table('myfile.txt',sep=" ") > > which unfortunately returns only integers and not doubles that are required > to store the� > > 50.7906430000000 > > What can I do to force it to store things into doubles? > > B.R > Alex > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.