result of correlation function in r I would like to ask if the matrix that is returned from the R cor() function applied on a dataset, is considered a confusion matrix. Thank you
No, it is not a confusion matrix. 

Please have a look at the docs

This is how the confusion matrix is created in R.