title: Replacing multiple cells (various row/column combinations) with one value in R data frame
body: <p>Is there a way to condense the following code to list all the cells to the left of the &lt;- on one line? I've tried commas, pipes and ampersands. </p>
  
  <pre><code>SchoolData[2,4]   &lt;- Res.Stf0815[1,4]
  SchoolData[3,5]   &lt;- Res.Stf0815[1,4]
  SchoolData[4,6]   &lt;- Res.Stf0815[1,4]
  SchoolData[5,7]   &lt;- Res.Stf0815[1,4]
  
  SchoolData[2,4], SchoolData[3,5], SchoolData[4,6], SchoolData[5,7] &lt;- Res.Stf0815[1,4]
  </code></pre>