SyntaxFix
Write A Post
Hire A Developer
Questions
You can also use the summary for linear models:
summary(lm(obs ~ mod, data=df))$r.squared