SMS: Statistical data cleaning with applications In R.