This question already has an answer here:
- Relationship between $R^2$ and correlation coefficient 5 answers
- Is $R^2$ useful or dangerous? 6 answers
As far as I understood, R squared explains how much the variation in Y is explained by its linear association with X. And it's used as an indicator for goodness of fit of a linear model.
Then when should I use r (Pearson coefficient)? How is it useful?