On 8/15/06, Geetha Weerasooriya <[EMAIL PROTECTED]> wrote:
I have a data file where there are bus probe data for different bus ID's. I want to separate these data based on vehicle ID, date, time and distance from intersections. Can some one kindly give me an idea to do this?
I recommend that you use a Perl program. Perl is useful for these kinds of data analysis tasks, due largely to its grep and sort functions, regular expressions, and references, among other powerful tools. In this case, I'd probably use a while loop and a regular expression to read the data into one or more arrays. Then I'd probably use sort and some custom subroutines to organize the data and produce some kind of report or reports. Also: CPAN. I'd use modules from CPAN to process the date and time data, and maybe other modules to help with data analysis or graphing, say. Hope this helps! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>