title: How to subtract one vector from another vector in r
body: <p>I have a vector <code>c &lt;- c(1,2,3)</code> and another vector <code>d &lt;- c(4,5,6,7)</code>. I want to subtract each element of <code>c</code> from  each element of <code>d</code> to get a <code>list</code> of lists in R. How can I do so? Thanks. </p>