title: How to load texts for text mining with R Tidytext?
body: <p>How do I load a folder of .txt files for textmining with Tidytext?</p>
  
  <p>I came across Silge &amp; Robinson "Text mining with R:  A tidy approach" (<a href="https://www.tidytextmining.com/" rel="nofollow noreferrer">https://www.tidytextmining.com/</a>) and it seems very promising for my purposes. But I'm very new to R (trying to learn it for this very purpose) so I'm stumbling on some pretty basic problems.</p>
  
  <p>While I can follow and reproduce the examples, they mostly start with importing existing libraries (e.g. janeaustenr or gutenbergr), whereas what I have is a folder of 30 txt files (each containing an annual declaration by the Swedish foreign minister to parliament).</p>
  
  <p>I've sort of managed to do it backwards by using some other tutorials and the tm package to first create a corpus, then a DTM which I can then turn into a tidy data frame, but I guess there must be a simpler way, to go directly from a folder of txt files to a tidy data frame.</p>