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
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
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
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
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
]),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
>
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
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
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
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=""))
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
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
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
13 matches
Mail list logo