Comments (3)
I tried using suggestion by @leeper on another thread by giving same page number three times and specifying the areas. The first two tables were extracted perfect, however the third table which was flowing into next page gave error
org_affiliates_3 <- as.data.frame(extract_tables(fn, pages = c(sel_page,sel_page,sel_page), area = c(list(c(top3,left3,bottom3,right3)),list(c(top3+194,left3,bottom3+194,right3)),list(c(top3+194+194,left3,bottom3+194+194,right3))), guess = FALSE, method = "data.frame"))
Error in (function (..., row.names = NULL, check.rows = FALSE, check.names = TRUE, :
arguments imply differing number of rows: 10, 6
Is there a way to just bypass the error, and extract only 6 rows for third table
from tabulapdf.
If you use a different method
argument, you should be able to get back a structure that isn't passed through data.frame()
. You might try the method = "csv"
option, which will just save a CSV locally (directly from the underlying Java code) or method = "character"
.
from tabulapdf.
Thankyou @leeper
I tried all the methods.. but none of them seem to work
extract_tables(fn, pages=7,package = "tabulizer",method = "csv")
[1] "C:\tabulizer\phd\Ind"
there is no file created in the folder
extract_tables(fn, pages=7,package = "tabulizer",method = "character")
list()
extract_tables(fn, pages=7,package = "tabulizer",method = "asis")
[1] "Java-Object{[]}"
extract_tables(fn, pages=7,package = "tabulizer",method = "tsv")
[1] "C:\tabulizer\phd\Ind" - No file created
extract_tables(fn, pages=7,package = "tabulizer",method = "json")
[1] "C:\tabulizer\phd\Ind"
from tabulapdf.
Related Issues (20)
- Specifying columns as percentages
- Having problems with automate table recognition, can one save areas found manually for reproduction?
- {tabulizer} got archived on CRAN on 2021-10-31 HOT 20
- extract_tables function status was 'SSL connect error' error
- Select multiple areas per page in `*_areas()`
- q question about package( Tabulizer) installation HOT 4
- a suggested code or documentation change, improvement to the code, or feature request HOT 1
- inconsistent behavior of extract_tables and extract_areas HOT 4
- Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl, : java.lang.IllegalAccessException: class RJavaTools cannot access a member of class java.util.ArrayList$Itr (in module java.base) with modifiers "public" HOT 11
- New Maintainer Wanted :-) HOT 6
- An illegal reflective access operation has occurred HOT 1
- Renaming to tabula HOT 2
- Windows CI fails because of Java 8 requirement HOT 1
- build fails with tabula 1.2.1 jar HOT 1
- ROADMAP FOR FALL 2023 HOT 6
- Unable to install in tabulizer HOT 1
- pkgdown building issue HOT 10
- Is jdk7 -y needed? HOT 6
- Is the package abandoned? HOT 1
- Issue with extract_tables function. Couldn't run the example: getRowCount HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tabulapdf.