title: Creating a complete new column from random values in R
body: <p>New R user here and I'm looking to create a new column with randomly selected data from the existing columns.  I have a table of data for five years but with random cells missing data across different years. I would like to create a new column which is full with data, randomly chosen from any points across the five years.</p>
  <p>The dataset is huge, but it resembles something like:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Individual</th>
  <th>size 2010</th>
  <th>weight 2010</th>
  <th>gender 2010</th>
  <th>size 2011</th>
  <th>weight 2011</th>
  <th>gender 2011</th>
  <th>size 2012</th>
  <th>weight 2012</th>
  <th>gender 2012</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>A</td>
  <td>100</td>
  <td>50</td>
  <td>M</td>
  <td>100</td>
  <td>55</td>
  <td>M</td>
  <td>101</td>
  <td>65</td>
  <td>M</td>
  </tr>
  <tr>
  <td>B</td>
  <td>75</td>
  <td>NA</td>
  <td>F</td>
  <td>75</td>
  <td>NA</td>
  <td>F</td>
  <td>75</td>
  <td>60</td>
  <td>F</td>
  </tr>
  <tr>
  <td>C</td>
  <td>90</td>
  <td>65</td>
  <td>F</td>
  <td>90</td>
  <td>67</td>
  <td>F</td>
  <td>NA</td>
  <td>70</td>
  <td>F</td>
  </tr>
  <tr>
  <td>D</td>
  <td>NA</td>
  <td>70</td>
  <td>NA</td>
  <td>NA</td>
  <td>50</td>
  <td>M</td>
  <td>NA</td>
  <td>55</td>
  <td>NA</td>
  </tr>
  <tr>
  <td>E</td>
  <td>NA</td>
  <td>NA</td>
  <td>NA</td>
  <td>NA</td>
  <td>NA</td>
  <td>NA</td>
  <td>120</td>
  <td>70</td>
  <td>M</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Eventually, I would like a column added after this data, which reads 'size', 'weight', and 'gender' with a random variable chosen from any of the years in the table.</p>