'correlation between two scales with different numbers of response categories

Which method can be used to calculate the correlation between two scales (Likert scales) with different numbers of response categories ? e.g korrelation between scale1 (5-point Likert-scale) vs Scale2 (7-point Likert-scale)) How can this be calculated using RStudio ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source