Adds a periodicity variable back into the dataset