I am studying about the correlation function which is inbuilt in R for finding the correlation.I came across two function one cor.test and other is with.
with- with is a generic function that evaluates the expression in a local environment constructed from data.
cor.test - The three methods each estimate the association between paired samples and compute a test of the value being zero. They use different measures of association, all in the range [-1, 1] with 0 indicating no association.
I want to difference between them and where to use them.