ERROR IN COR-supply both 'x' and 'y' or a matrix-like 'x'

Basically we need a REPREX and some or all of your data. And the exact error messages