Thanks again Jim. The links below are for 2 files (papers) i
downloaded from Google Scholar for testing. You can use either both or
any other pdf files with tables. Thanks again-EK.
https://pdfs.semanticscholar.org/50a4/2b8146f08161b1036457fe0d241b6b898974.pdf
https://pdfs.semanticscholar.org/50a4
Hi Ek,
It looks to me as though you are not joining the lists into a single
list, then calling FillList and then converting to a data frame. If
you can send some data (if it's not too big) I can test it and make
sure that it works, as it did every time for me.
Jim
On Thu, Dec 20, 2018 at 2:22 PM
Thank you Jim. I did use unlist with the recursive option which
converted the 3 levels list to a list of 38 matrices. I tried your
earlier function to join the 38 matrices, all of which have different
number of columns and rows, but i kept getting an error.
fillList<-function(x) {
+ maxrows<-m
Hi Ek,
Look at unlist and the argument "recursive". You can step down through
the levels or a nested list to convert it to a single level list.
Jim
On Thu, Dec 20, 2018 at 1:33 PM Ek Esawi wrote:
>
> Thank you Bert. I don't see how unlist will help. I want to combine
> them but keep the "rectang
Thank you Bert. I don't see how unlist will help. I want to combine
them but keep the "rectangular structure",e.g. list, data frame,
matrix because i want to get the tables in their original form.
Unlist converts the whole output to a single vector; unless i am
missing something.
On Wed, Dec 19,
Does ?unlist not help? Why not?
Bert
On Wed, Dec 19, 2018, 5:13 PM Ek Esawi Hi All—
>
> I am using the R tabulizer package to extract tables from pdf files.
> The output is a set of lists of matrices. The package extracts tables
> and a lot of extra stuff which is nearly impossible to clean wi
6 matches
Mail list logo