Skip to content
Prev 327273 / 398502 Next

Select csv files by choosing datetime

I tried like this,

file.info(list.files(path = fpath, pattern = "*.csv", all.files = FALSE,
full.names = TRUE,ignore.case = TRUE))$mtime
- It returning files modified date.
["2013-07-23 15:43:51 IST" "2013-07-23 15:43:51 IST" "2013-07-23
15:43:51 IST" "2013-07-23 15:45:33 IST" "2013-07-23 15:45:32 IST"]


file.info(list.files(path = fpath, pattern = "*.csv", all.files = FALSE,
full.names = TRUE,ignore.case = TRUE))$mtime="2013-07-23 15:51:41 IST"
-here getting error
[Error in file.info(list.files(path = fpath, pattern = "*.csv",
all.files = FALSE,  :  could not find function "file.info<-"]



But how can I get filenames along with path which is created
between(modified date) two date/time.

Thanks
Antony.



-----Original Message-----
From: Akkara, Antony (GE Energy, Non-GE) 
Sent: Tuesday, July 23, 2013 6:19 PM
To: 'Jim Holtman'
Cc: r-help at r-project.org
Subject: RE: [R] Select csv files by choosing datetime

Hi,

I tried with file.info() . But how can I get a set of filenames with
path which is created between two date/time.

Thanks,
Antony.



-----Original Message-----
From: Jim Holtman [mailto:jholtman at gmail.com]
Sent: Monday, July 22, 2013 4:23 PM
To: Akkara, Antony (GE Power & Water, Non-GE)
Cc: r-help at r-project.org
Subject: Re: [R] Select csv files by choosing datetime

you can use 'file.info' to get the date the file was created and then
choose the file you want.

Sent from my iPad
On Jul 22, 2013, at 4:36, R_Antony <antony.akkara at ge.com> wrote: