I'm using extract_tables
from the tabulizer
-package to extract tables from a PDF file. Everything works fine but if the table is with less than 4 lines with headers it's not extracted. If table is more than 4 lines it's properly extracted.
This is the code that I use :
text <- extract_tables("file path, file name")
table <- do.call(rbind, text)
table <- as.data.frame(table)
I also tried solution with fixing area:
text <- extract_tables("file path, file name", area = c(0,0,595,842))
But in this case some columns are missing and some columns are merged.
Did someone face the same issue and knows how to solve it?