Description Usage Arguments Details Value Note Author(s) See Also Examples
Get supplementary tables from PMC
1 |
pmcid |
id or XML document with PMC id attribute |
file |
supplementary file name |
type |
type of file, default to file extension |
opts |
pdftotext options |
rm |
remove downloaded files |
header |
column labels in Word doc |
pmc |
download from NCBI pmc |
... |
other options passed to |
This function is used by pmcSupp
to read supplmentary tables in a variety of formats including Excel, Word, HTML, PDF, text, and zip. If pmc=TRUE, the url string is generated using the PMC id and the file name http://www.ncbi.nlm.nih.gov/pmc/articles/<pmcid>/bin/<supplementary file>. If pmc=FALSE, then include the full url string in the file name.
A data.frame or vector for PDF files.
May not work on all systems. Zip files are uncompressed using the unix unzip
command. Excel files are read using the read.xls
function in the gdata package. Microsoft Word documents are converted to html files using the Universal Office Converter unoconv
and then tables within the html files are read using readHTMLtable
in the XML package. The tables within HTML files are also loaded using readHTMLtable
. PDF files are converted to text using the unix script pdftotext
and the resulting file is read into R using readLines
.
Chris Stubben
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.