How to extract dataframe from a multipage table in a pdf file?

I am learning R. This page has been very helpful. It has thought me a lot. I can't get to represent all the data in a tidy way. can someone help me finalize the code. each page has a different row name, which makes the data pages don't fall under the same column names.

library(tidyverse)
library(tidyr)
library(tabulizer)
warn<-table<-extract_tables(
"https://www.edd.ca.gov/jobs_and_training/warn/WARN-Report-for-7-1-2017-to-06-30-2018.pdf",
output = "data.frame",
pages = c(1:13),
guess = FALSE
)

warn_table=reduce(warn, bind_rows)%>%
as_tibble()%>%
filter(!(X%in%c("WARN REPORT","")))%>%
rename(noticedate=X,
effectdate=X.1,
recedate=X.2,
company=WARN.Report,
city=X.3,
country=X.4,
numempl=X.5,
)

but the second page has different columns

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.