Merge all datasets into one file and format the datain a wide data-frame. Include "total periods" and "valid periods" variables