12
I am deepening in R and looking for a function that is equivalent to the sums of excel.
I have this following DF:
Day.of.Week Hour Quantidade
5 21 5044
3 12 5024
1 11 4725
0 16 4643
1 15 4601
4 14 4566
2 20 4509
1 10 4502
3 13 4477
6 11 4449
I need him to do the equivalent of Somases
to mount something like
Hour 0 1 2 3 4 5 6
0 - - - - - - -
1 - - - - - - -
2 - - - - - - -
3 - - - - - - -
4 - - - - - - -
5 - - - - - - -
6 - - - - - - -
7 - - - - - - -
8 - - - - - - -
9 - - - - - - -
10 - - - - - - -
...
It would add up the amount according to the day of the week and the time.
Very elegant code.
– André Muta
Sensational guy, thank you so much!
– Felipe Amaral Rodrigues