Help with error, not sure why

What does data look like?

Can you provide an example of it using dput or reprex?