I have a list time_info_summary
> time_info_summary
$mon_from_time
0700 0800
14 388
$mon_to_time
1800 1830 2000 2100 2200 2300
1 1 60 121 214 5
$tue_from_time
0700 0800
14 388
$tue_to_time
1800 1830 2000 2100 2200 2300
1 1 60 121 214 5
It is a list of tables.
> typeof(time_info_summary)
[1] "list"
It contains the time (like for "mon_from_time" it is 0700 for which count is 14 and for 0800 count is 388). I want to calculate the weighted average of time for each of the item of list. i.e., what is the weighted average for "mon_from_time" ((0700*14 +0800*388)/402 = 0796) and so on...how can I do this