title: How do I map over a tibble with R lang?
body: <p>I have a tibble. Each row in my tibble contains a url and a name. I'd like to map over each row in this tibble, and pass the complete row to a function (scrape_function).</p>
  <pre><code>pagelist
  # A tibble: 10 × 2
     href                         text            
     &lt;chr&gt;                        &lt;chr&gt;           
   1 /page-one.html               page name       
   2 /page-two.html               page 2 name
   3 /page-three.html             page 3 name       
   4 /page-four.html              page 4 name  
   5 /page-five.html              page 5 name   
  ... etc ...
  </code></pre>
  <p>How do I do this? I thought something like <code>map_dfr</code> might work, but in the code below, I'm getting an error <code>Error: </code>x<code> must be a string of length 1</code>. How do I pass the entire row to the function?</p>
  <pre><code>pagelist %&gt;%
    map_dfr(function(x) { scrape_function(x) } )
  </code></pre>