Sunday, March 24, 2024

Module #11 Debugging and Defensive Programming

 


The error I noticed pretty quickly about this code was the last line; the "return" line was improperly placed. Once I ran the code and got this error, 
I was convinced that the error could be attributed to the same line. The (i in 1:nrow) was correct because it properly selected the numbers 1to the last row; the outlier part of the function was properly written, although I hadn't seen the "all" function before. After dropping the 'return' line to the next, the syntax error was solved and the function could be used to print. I'm not sure exactly what the function might do, but I'm assuming that the input is considered against the data set and deemed an outlier or not.






No comments:

Post a Comment

Final Project Visual Analytics

      For this project, I will be utilizing statistical visualizations derived from the "USMacroB" dataset. Spanning from 1959 to ...