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:jholt...@gmail.com] Sent: Monday, July 22, 2013 4:23 PM To: Akkara, Antony (GE Power Water, Non-GE) Cc: r-help@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.akk...@ge.com wrote: Hi, how can we read particular files from a path ? - i mean, i need to read csv files which is created between two date and time. Here i need to get filename along with path. Thanks, Antony. -- View this message in context: http://r.789695.n4.nabble.com/Select-csv-files-by-choosing-datetime-tp 4672023.html Sent from the R help mailing list archive at Nabble.com. __ 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.
Re: [R] 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@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:jholt...@gmail.com] Sent: Monday, July 22, 2013 4:23 PM To: Akkara, Antony (GE Power Water, Non-GE) Cc: r-help@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.akk...@ge.com wrote: Hi, how can we read particular files from a path ? - i mean, i need to read csv files which is created between two date and time. Here i need to get filename along with path. Thanks, Antony. -- View this message in context: http://r.789695.n4.nabble.com/Select-csv-files-by-choosing-datetime-tp 4672023.html Sent from the R help mailing list archive at Nabble.com. __ 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.
[R] Select csv files by choosing datetime
Hi, how can we read particular files from a path ? - i mean, i need to read csv files which is created between two date and time. Here i need to get filename along with path. Thanks, Antony. -- View this message in context: http://r.789695.n4.nabble.com/Select-csv-files-by-choosing-datetime-tp4672023.html Sent from the R help mailing list archive at Nabble.com. __ 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.
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.akk...@ge.com wrote: Hi, how can we read particular files from a path ? - i mean, i need to read csv files which is created between two date and time. Here i need to get filename along with path. Thanks, Antony. -- View this message in context: http://r.789695.n4.nabble.com/Select-csv-files-by-choosing-datetime-tp4672023.html Sent from the R help mailing list archive at Nabble.com. __ 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.