I am currently trying to solve a bug but believe the data I am working with may be too complex and cause errors that shouldn\'t normally occur. I\'ve written a function, and