Welcome.
We can't see your dataset because we don't have it. You can provide a reproducible example though.
both variables have different lengths
You'll need to ensure that they are of the same length.
variable need to be changed to numeric but I really need it as a factor
You can't correlate a factor variable.
1 Like