Have spent a lot of time on this so hoping someone can advise. I have a piece of code that used funs(), which is soft deprecated and so have tried the alternative but cannot