[R] Data is not properly written in csv file

Sri Priya @r|@chocho @end|ng |rom gm@||@com
Sun Jun 20 17:03:42 CEST 2021


Dear R Users,

I am working on extracting tables from PDF and I am writing that in a csv
file. When I executed the code, the tables were not properly written in the
csv file.

Here is my code:

library(tabulizer)
# Location of pdf file.
location <- '
http://keic.mica-apps.net/wwwisis/ET_Annual_Reports/Religare_Enterprises_Ltd/RELIGARE-2017-2018.pdf
'

# Extract the table
out <- extract_tables(location)
for(i in 1:length(out))
{
    write.table(out[i], file='Output.csv',append=TRUE, sep=",",quote =
FALSE)
}
 I enclosed the screenshot of the output file. In that you can see
the tables are incomplete.

Any help would be appreciated.

Thanks
Sripriya.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot.png
Type: image/png
Size: 213656 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20210620/923ac6e0/attachment.png>


More information about the R-help mailing list