library(xts)
period.apply()
might also be helpful.
Michael
On Tue, Nov 6, 2012 at 7:32 PM, Rui Barradas wrote:
> Hello,
>
> You should provide us with a data example. Since you haven't, look at the
> following code and see if you understand it.
>
> # Make up some data
> x <- Sys.time() + (1:100
Hello,
You should provide us with a data example. Since you haven't, look at
the following code and see if you understand it.
# Make up some data
x <- Sys.time() + (1:1000)*15
y <- rnorm(1000)
brks <- cut(x, breaks = "hour") # hour breaks
tapply(y, brks, mean) # hourly means of 'y'
Hope
aggregate(), most likely.
But please read:
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
and come back if you need more assistance.
Sarah
On Tue, Nov 6, 2012 at 1:57 PM, B. Bahar wrote:
> Hello,
>
> I have much more than one milion tempreture is gained ea
Hello,
I have much more than one milion tempreture is gained each 15 seconds. So
each 15 seconds, I have one data.
How could I calculate avarage datas in each hour in R?
If you could help me.
[[alternative HTML version deleted]]
__
R-help@r-pr
4 matches
Mail list logo