Here\'s some code:
for(i in 1:colCount){ for(j in colCount:i){ cor(newCovidNoNaDF[,i],newCovidNoNaDF[,j], method = "pearson") } }