![]() ![]() # Make some text with page numbers sample_text_a <- "The quick brown fox named Seamus jumps over the lazy dog also named Seamus, page 1 with the newspaper from a boy named quick Seamus, in his mouth. We can load all texts included in both folders. In our example, the folder txt/movie_reviews contains two subfolders (called neg and pos). ![]() Readtext can also curse through subdirectories. # Description: df # doc_id text unit context year language party # 1 EU_euro_2004_de_PSE.txt "\"PES ![]() # Manifestos with docvars from filenames readtext( paste0(DATA_DIR, "/txt/EU_manifestos/*.txt"), docvarsfrom = "filenames", docvarnames = c( "unit", "context", "year", "language", "party"), dvsep = "_", encoding = "ISO-8859-1") # readtext object consisting of 17 documents and 5 docvars. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |