[R] Reading highest numbered file
Michael D
mike409 at gmail.com
Tue Sep 14 20:25:01 CEST 2010
I have a bunch of files named
"[identifier1].[identifier2].[yyyymmdd].[hhmmss].txt" and im having
trouble updating my read script for the timestamp.
I've been using file.exists and a for loop but its highly inefficient
and cumbersome.
Would there be someway to create an object containing the string of
each .txt file in some directory and to sort them by the date and time
stamps so I can easily pull the last few days worth of files into a
workspace?
Thanks.
Michael
More information about the R-help
mailing list