0

I have data in a zoo data structure. I want to pull all August daily vaules over 10 years and compute monthly statistics for a period of record. Any thoughts on easy way to do this?

tonytonov
  • 25,060
  • 16
  • 82
  • 98
dchawk
  • 1
  • 1
    Please show us what you have so far: your data, your code and the exact moment you are stuck at. See the [following guideline](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) on how to ask a good question. – tonytonov Apr 23 '14 at 06:59
  • Please read this for how to create a reproducible example: http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example – G. Grothendieck Apr 23 '14 at 10:27
  • Thanks, I actually found a package that calculated the statistic I was manually trying to calculate, monthly mean and mean monthly. – dchawk May 15 '14 at 18:40

1 Answers1

0

an example will be great of the specific date format, however, try format()

for example:

x <- as.POSIXct("2009-08-03 12:01:59.23")
format(x,"%b")  

For simplicity, just create a new column with the format() then subset it with the month your looking for.

digdeep
  • 624
  • 2
  • 10
  • 21