[R] Query: how to group data by months from a text file

From: Stefano Sofia <stefano.sofia_at_regione.marche.it>
Date: Sat, 19 Apr 2008 15:04:31 +0200


Dear R-users,
I have to deal with (txt) files of the form

10092007 24.62 24.31 24.90
11092007 19.20 23.17 22.10
13092007 24.71 27.33 23.10
14092007 27.33 27.90 24.10
15092007 28.22 28.55 24.30
16092007 28.53 29.24 27.40
17092007 24.19 30.64 26.80
18092007 22.60 20.62 28.40
19092007 18.89 21.70 14.70
20092007 21.27 22.92 17.30
21092007 22.38 24.72 18.80
22092007 23.94 24.73 20.40
23092007 25.33 25.12 22.60
24092007 24.91 22.46 21.40
25092007 23.52 25.00 21.70
26092007 20.50 22.29 18.80

...

where in the first column there is the date (DDMMYYYY), in the last three columns data. I should divide these data by months (example:Jan07, Feb07, ..., Dec07, Jan08, ...), where the start and the end can change depending on the file. Could somebody give me some good hints about it?

thank you
Stefano

        [[alternative HTML version deleted]]



R-help_at_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. Received on Sat 19 Apr 2008 - 13:09:40 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 19 Apr 2008 - 14:30:29 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive