Function to create a tidy dataset from wearable data