Let $R$ be a commutative ring (noetherian if needed) and $n,m$ be two nonnegative integers. Consider a map
$\varphi: R^n\rightarrow R^m$
Is there a characterisation, e.g. in terms of the matrix representation of $\varphi$ of the cokernel of this map being free?
remark: this question seems to be quite similar and I just learned from it that there is a criterion for when the module is projective in terms of minors of the matrix representing $\varphi$. So maybe this question is to strong as it asks essentially to classifiy the free modules among the projectives, but is there at least a sufficient criterion in nice situations?