Hi all
I have a data set as the following:
ID Date
1 20/03/2018
1 21/03/2018
1 23/03/2018
1 24/03/2018
1 26/03/2018
2 03/05/2018
2 10/05/2018
2 17/05/2018
2 24/05/2018
3 01/06/2018
3 01/07/2018
3 01/08/2018
I would like to find the frequency for each ID. In this case, ID 1 would be daily, ID 2 would be weekly and ID 3 would be monthly.
I tried to find out the different between each date and work out the average but it doesn't work.
Thanks
I have a data set as the following:
ID Date
1 20/03/2018
1 21/03/2018
1 23/03/2018
1 24/03/2018
1 26/03/2018
2 03/05/2018
2 10/05/2018
2 17/05/2018
2 24/05/2018
3 01/06/2018
3 01/07/2018
3 01/08/2018
I would like to find the frequency for each ID. In this case, ID 1 would be daily, ID 2 would be weekly and ID 3 would be monthly.
I tried to find out the different between each date and work out the average but it doesn't work.
Thanks
Comment