Advanced data checking, cleaning, and tidying