R2 in Rstudio

rsq <- function (x, y) cor(x, y) ^ 2
Rocku0