1
Have:
Data Sala.1 Sala.2 Sala.3 Horas
1 02/08/2013 20.5 19.7 21.6 15:00
2 02/08/2013 19.7 18.9 20.2 15:30
3 02/08/2013 19.7 19.1 20.0 16:00
4 02/08/2013 19.7 18.8 19.8 16:30
5 02/08/2013 19.8 18.8 19.9 17:00
6 02/08/2013 19.9 19.2 20.0 17:30
7 02/08/2013 19.9 18.9 20.0 18:00
8 02/08/2013 20.0 19.1 20.1 18:30
9 02/08/2013 20.2 19.4 20.3 19:00
10 02/08/2013 20.3 19.1 20.4 19:30
11 02/08/2013 20.5 19.6 20.6 20:00
12 02/08/2013 20.5 19.2 20.6 20:30
13 02/08/2013 20.8 19.8 20.9 21:00
14 02/08/2013 20.7 19.3 20.8 21:30
15 02/08/2013 21.0 19.9 21.1 22:00
16 02/08/2013 20.9 19.5 21.1 22:30
17 02/08/2013 20.9 19.3 21.1 23:00
18 02/08/2013 21.2 20.1 21.4 23:30
I need to calculate the average temperature per room during the time of stay (7:00 till 23:30) Does anyone know how I do in R?
Possible duplicate of How to average a column in R?
– Marcos Banik
colMeans(dados[2:4])
.– Rui Barradas