0

I have multiple pdf files (similar), converted each to text

doc_1<-pdf_text("abc.pdf") 
# and then readLines
test_1 <- readLines(paste("C:/Users/Desktop/WIP/pdfs", "/doc_1.csv", sep = ""))
write.csv(test_1,"test_1.csv")

doc_2<-pdf_text("xyz.pdf") 
# and then readLines
test_2 <- readLines(paste("C:/Users/Desktop/WIP/pdfs", "/doc_2.csv", sep = ""))
write.csv(test_2,"test_2.csv")

Would love to append all "test_1","test_2"...before writing to csv using a loop process.

Please assist.

dcarlson
  • 5,687
  • 2
  • 11
  • 16
abc_xyz
  • 1
  • 1
  • Use a [list of data frames](https://stackoverflow.com/questions/17499013/how-do-i-make-a-list-of-data-frames/24376207#24376207). This answer will show you how to get those data frames into a list and then combine them into one data frame. – Gregor Thomas Oct 29 '20 at 17:30

0 Answers0