I'm here again.
I have 3 months long dataset with hourly data. I need a weekly average for each hour of the day. So, not a single average value for the entire week, but a value for each hour of the day for a week.
I haven't tried anything, because I don't how I can start. What I can do, it's share a subset of my dataset with you.
structure(list(Hourtime = structure(c(1527804000, 1527807600.73559,
1527811201.47119, 1527814802.20678, 1527818402.94238, 1527822003.67797
), class = c("POSIXct", "POSIXt"), tzone = ""), HOF = c(0, 1,
2, 3, 4, 5), H_flux = c(-7.9856017965, -5.9197070475, -8.3727508595,
-17.317657695, -20.81087357, -7.6067714585), LE_flux = c(-0.0788009009557579,
-1.90920163435432, 0.251986931688322, -1.25918680530234, 0.497851355551565,
10.6053213610874), Turbulence = c(0.1061918215, 0.08405, 0.1211055835,
0.208830021, 0.2305439105, 0.219717154), mz31_flux = c(0.02342,
-0.008085, 0.01424, 0.02375, -0.01505, 0.03235), mz33_flux = c(0.0361,
-0.0239, -0.1048, -0.0205, 0.2685, 0.2255), mz39_flux = c(-0.057,
-0.00199999999999999, 0.2345, 0.3745, 0.029, -0.3645), mz42_flux = c(2e-04,
0.0119, 0.00655, -0.00495, 0.0064, -0.004), mz45_flux = c(0.06575,
0.028, -0.05065, 0.1115, 0.0844, 0.08305), mz47_flux = c(-0.046,
0.00685, 0.02795, 0.06215, -0.01425, -0.0383), mz59_flux = c(0.0474,
0.03845, -0.03475, -0.00784999999999999, 0.07285, -0.10705),
mz61_flux = c(-0.01585, 0.01135, 0.03077, 0.01605, -0.0579,
0.01725), mz69_flux = c(0.02105, 0.001225, -0.01625, 0.0074,
-0.0062, 0.000949999999999998), mz71_flux = c(0.000545, 0.00335,
0.00221, -0.01115, 0.00195, -0.0021), mz75_flux = c(-0.00202500000000001,
0.00011, 0.0051385, 0.000277500000000003, -0.0012705, -0.00884999999999998
), mz79_flux = c(0.010005, 0.00919, -0.0072, -0.02325, -0.0045,
-0.03495), mz85_flux = c(-0.007545, -0.00196, -0.013675,
0.0037, 0.010395, -0.02955), mz87_flux = c(0.01014, 0.00746,
-0.003515, 0.01265, -0.00256, -0.01645), mz93_flux = c(0.01165,
0.031, 0.0224, 0.029325, 0.02195, 0.0736), mz99_flux = c(0.00022,
0.000495, -0.003895, -0.00068, 0.008325, 0.009685), mz101_flux = c(0.008145,
-0.00175, 0.0108, 0.0148, -0.0132, 0.00495), mz107_flux = c(-0.02735,
0.0189, 0.0144, 0.0093, -0.00525, -0.0037), mz111_flux = c(0.002505,
0.00135, 0.004185, -0.00274, 0.00484, -0.005175), mz113_flux = c(0.00215,
0.0012235, 0.00277, 0.002775, -0.00438, -0.00568), mz135_flux = c(-0.00801,
0.004815, 0.014065, -0.002315, 0.00317, -0.0119), mz137_flux = c(0.02895,
0.008273, -0.03515, 0.00471, 0.014485, 3.73594), mz149_flux = c(-0.00256,
0.0001485, 0.004081, -0.00187, -0.00153, 0.002755), mz155_flux = c(-0.000105,
0.0005345, -6.435e-05, 0.000846, 1988.94262555, 0.00012)), row.names = c(NA,
6L), class = "data.frame")