Make x a date class object
Merge branch 'master' of https://github.com/benjamin-chan/RTipsAndTricks