Useful references from around the web: Regular expressions in R using stringr Useful references I've made myself: Flow chart of the survey process and sources of error R Tutorial: Multi-State Models in R