Re: [R] Reading Multiple Files for Text Mining in R Using TM Package?

2017-03-02 Thread Shivi Bhatia
nd your problem corrrectly. > > > > Cheers > > Petr > > > > > > *From:* Shivi Bhatia [mailto:shivipm...@gmail.com] > *Sent:* Thursday, March 2, 2017 2:06 PM > *To:* PIKAL Petr > *Cc:* R-help > *Subject:* Re: [R] Reading Multiple Files for Text Mining in R

Re: [R] Reading Multiple Files for Text Mining in R Using TM Package?

2017-03-02 Thread PIKAL Petr
need to use setwd. But maybe I do not understand your problem corrrectly. Cheers Petr From: Shivi Bhatia [mailto:shivipm...@gmail.com] Sent: Thursday, March 2, 2017 2:06 PM To: PIKAL Petr Cc: R-help Subject: Re: [R] Reading Multiple Files for Text Mining in R Using TM Package? Hi Pik

Re: [R] Reading Multiple Files for Text Mining in R Using TM Package?

2017-03-02 Thread Shivi Bhatia
r-help-boun...@r-project.org] On Behalf Of Shivi > > Bhatia > > Sent: Thursday, March 2, 2017 1:00 PM > > To: R-help > > Subject: [R] Reading Multiple Files for Text Mining in R Using TM > Package? > > > > Hi All , > > > > I am trying to read few

Re: [R] Reading Multiple Files for Text Mining in R Using TM Package?

2017-03-02 Thread PIKAL Petr
nal Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Shivi > Bhatia > Sent: Thursday, March 2, 2017 1:00 PM > To: R-help > Subject: [R] Reading Multiple Files for Text Mining in R Using TM Package? > > Hi All , > > I am trying to read few

[R] Reading Multiple Files for Text Mining in R Using TM Package?

2017-03-02 Thread Shivi Bhatia
Hi All , I am trying to read few csv files for some text mining assignment. I have used this command to check the # of files in the working directory: length(dir(path="D:/Shivi/R Project", all.files = TRUE)) This results to more than 220 approx. I just need 3 files from these to use for the tex

Re: [R] Reading multiple files from different folders

2015-08-12 Thread PIKAL Petr
]),3) vysled[i,4] <- pigm[i] } else { vysled[i,4] <- pigm[i]} setwd(wd) write.table(vysled, "vysled.xls", sep="\t", row.names=F, na="") } Cheers Petr > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Val >

[R] Reading multiple files from different folders

2015-08-12 Thread Val
Hi all, I have several files in different folders or subdirectories. Here is an example of the data set. c:\country\state\city. There might be more than 500 cities. ** c:\country\state\city1 c:\country\state\city2 . . . c:\country\state\city500

Re: [R] Reading multiple files

2012-09-26 Thread Silvano Cesar da Costa
Actually the problem occurred in the command: names = substr (filenames, 1, 7) As the file's names are: Dados1.raw, Dados2.raw, ..., Dados11.raw, Dados12.raw, ..., Data 35.raw the program doesn't work. A quick way to make it work is rename the files to: Dados01.raw, Dados02.raw, ..., Dados11.r

Re: [R] Reading multiple files

2012-09-26 Thread Silvano Cesar da Costa
Hi, I didn't notice problems with this. > Will your data be read in correctly if you do away with the colClasses > argument to read.delim (or read.table)? > > Jean > > > > "Silvano Cesar da Costa" wrote on 09/26/2012 09:11:33 AM: >> >> Hi, >> >> I have 35 data files for reading. I would like ge

Re: [R] Reading multiple files

2012-09-26 Thread Jean V Adams
If your previously posted code worked with files all having the same number of columns, and if your data is read in correctly without the colClasses argument, then I think the following code should work. for(i in names){ filepath = file.path("~/Silvano/Dados", paste(i, ".raw", sep=""))

Re: [R] Reading multiple files

2012-09-26 Thread Bretschneider SIG-R
On 26 Sep 2012, at 16:11 , Silvano Cesar da Costa wrote: > Hi, > > I have 35 data files for reading. I would like get a program for > performing reading of 35 files at once. > All are of the type: Dados1.raw, Dados2.raw and so on. > > If the files have the same number of columns, I can read wit

Re: [R] Reading multiple files

2012-09-26 Thread Jean V Adams
Will your data be read in correctly if you do away with the colClasses argument to read.delim (or read.table)? Jean "Silvano Cesar da Costa" wrote on 09/26/2012 09:11:33 AM: > > Hi, > > I have 35 data files for reading. I would like get a program for > performing reading of 35 files at once

[R] Reading multiple files

2012-09-26 Thread Silvano Cesar da Costa
Hi, I have 35 data files for reading. I would like get a program for performing reading of 35 files at once. All are of the type: Dados1.raw, Dados2.raw and so on. If the files have the same number of columns, I can read with the following commands: rm(list=ls()) filenames = list.files(path="~/S