I have the sample dataframe as below,
Where for each date the total 'value' score is 1 as the 'varible' is proportion. Now how can I calculate the zoo:rollmean for 'value' based on dates considering 'variable'?
In the end I need to make areaplot using all mean variable values according to date as below.
I have tried group_by(variable) but it did not give the desired output
Thank you! Wasim