Week: 11 Debugging Journey- Fixing the tukey_multiple Function
Introduction
In this post, I’ll explain how I fixed a bug in the tukey_multiple
function in R. The goal of this function is to find rows in a dataset where all the values are outliers. Initially, I ran into errors, but I eventually found the problem and fixed it. Here’s how I did it.
Understanding the tukey_multiple
Function
The function tukey_multiple
is supposed to:
- Check each column in a dataset to see if values are outliers.
- Return a list that tells us whether each row has only outliers across all columns.
Here’s the original code I started with:
Comments
Post a Comment