title: How to loop over several rows multiplicating with a constant number in R?
body: <p>I have a problem coding the following task:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>gene</th>
  <th>constant value</th>
  <th>Value A</th>
  <th>Value B</th>
  <th>Value C</th>
  <th>Value D</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>ABCD</td>
  <td>0.5224</td>
  <td>123</td>
  <td>456</td>
  <td>789</td>
  <td>123</td>
  </tr>
  <tr>
  <td>EFGH</td>
  <td>0.556</td>
  <td>254</td>
  <td>267</td>
  <td>2334</td>
  <td>12334</td>
  </tr>
  <tr>
  <td>IJKL</td>
  <td>0.7226</td>
  <td>23423</td>
  <td>56345</td>
  <td>67867</td>
  <td>17534</td>
  </tr>
  <tr>
  <td>MNOP</td>
  <td>0.0001</td>
  <td>2423</td>
  <td>143</td>
  <td>1554</td>
  <td>1344</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Given this table I want to multiply every value with the constant value of the row, so in the end the code should calculate this:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>gene</th>
  <th>constant value</th>
  <th>Value A</th>
  <th>Value B</th>
  <th>Value C</th>
  <th>Value D</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>ABCD</td>
  <td>0.5224</td>
  <td>123 *  0.5224</td>
  <td>456     *  0.5224</td>
  <td>789 *  0.5224</td>
  <td>123 *  0.5224</td>
  </tr>
  <tr>
  <td>EFGH</td>
  <td>0.556</td>
  <td>254 * 0.556</td>
  <td>267 * 0.556</td>
  <td>2334 * 0.556</td>
  <td>12334 * 0.556</td>
  </tr>
  <tr>
  <td>IJKL</td>
  <td>0.7226</td>
  <td>23423 * 0.7226</td>
  <td>56345   * 0.7226</td>
  <td>67867 * 0.7226</td>
  <td>17534  * 0.7226</td>
  </tr>
  <tr>
  <td>MNOP</td>
  <td>0.0001</td>
  <td>2423 * 0.0001</td>
  <td>143    * 0.0001</td>
  <td>1554 * 0.0001</td>
  <td>1344  * 0.0001</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Can anyone help how to implement this in R programming language?</p>
  <p>Kind regards,<br />
  Hashriama</p>