error in take.y()

Hi,

Welcome to the forum. It is going to be difficult for anyone to help you without a reprex. I suggest making one (see here: FAQ: How to do a minimal reproducible example ( reprex ) for beginners) and we'll be able to help :slight_smile: