This code is a part of homework for an Getting and Cleaning Data Course led by Jeff Leek on Coursera. Its aim is to prepara a tidy database according to the data cleaning rules.