title: Read Pdf file save the Text into a column
body: <p>Am trying to save few pdf file texts into column using R.
  Below is my code , where i get an error in the  sector_data[row, &quot;TextinPdfs&quot;] &lt;- text
  mentioning the Error as below.
  ! Assigned data <code>text</code> must be compatible with row subscript <code>row</code>.
  x 1 row must be assigned.
  x Assigned data has 43 rows.
  i Row updates require a list value. Do you need <code>list()</code> or <code>as.list()</code>?</p>
  <pre><code>for (row in 1:nrow(sector_data)) {
   tryCatch({
        #print(&quot;its printing&quot;)
        text &lt;- pdf_text(&quot;E:/files/Axiata_2013.pdf&quot;)
        
        sector_data[row, &quot;TextinPdfs&quot;] &lt;- text
        sector_data_filtered &lt;- rbind(sector_data_filtered, sector_data[row,])
      }, error = function(e) {
        print(paste(&quot;File&quot;, filename, &quot;is corrupted&quot;))
      })
     }
  </code></pre>
  <p>Can someone please help to solve this issue at the earliest possibility.</p>