It's much easier to help you if you can either make a reprex, or, at the very least, format your code chunks as code!
See FAQ here: