You have to tell R what the column delimiter is. See Read.table. On Apr 2, 2013 8:28 AM, "Shane Carey" <careys...@gmail.com> wrote:
> Hi, > > Im reading in a .txt file into R that consists of 5 columns, however, when > imported into R, it reads all the data into just one column. Is there a way > of telling R to create a dataframe with 5 columns rather than putting all > the data into one column? > > Thanks > > -- > Shane > > [[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. > [[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.