title: Randomly select a value from a row that is not NA from a data frame in R
body: <p>I have a data frame that has a series of values, some of which are NA - I'd like to at random sample one of the values that are not NA</p>
  <p>An example below:</p>
  <pre><code>df1
  
  col1    col2   col3
    1       4      NA
    2       NA      1
    NA       4      7
  
  </code></pre>
  <p>I would like a vector that then is a result of selecting one of the values from each row that is not NA.</p>