Let's try out interactive debugging with a simple machine learning problem: using k-means clustering on the famous iris-dataset. In this exercise there are four bugs hidden in the code. Try to use ...
What do you do when R code throws an unexpected error? What tools do you have to find and fix the problem? This chapter will teach you the art and science of debugging, starting with a general ...