Lars Steggink · Personal website


Quick summary functions for R

Tibblesummary for R

You want to have a quick first overview of a data set: (1) run summary functions for all (or selected) continuous and discrete variables, and (2) make histograms of all (or selected) continuous data. The tibblesummary package enables you to do that with the smallest amount of effort/code in R, using the power of the tidyverse.

Install this very easily in R from GitHub using devtools::install_github("ls31/tibblesummary").

GitHub R MIT license

Simple R scripts for basic calculations in clinical research

Clinicalcalculations for R

I've created a few R functions to perform basic clinical calculations in medical research. These include determining the presence of the metabolic syndrome, calculating corrected QT interval (QTc) of an electrocardiogram, calculating the BMI (Quetelet index), and calculating the BSA.

Install this very easily in R from GitHub using devtools::install_github("ls31/clinicalcalculations").

GitHub R MIT license

QRScan: recognition of QR codes in PDF files of scanned documents

QRScan: recognition of QR codes in PDF files of scanned documents

QRScan recognizes QR codes in PDF files of scanned documents and then reports these QR codes in a CSV file. QRScan was set up to help you keep track of your documents and set up basic file archiving based on these QR codes. We used the QRScan tool to generate hundreds of QR codes that we added to mass-mailing paper questionnaires. We scanned the returned questionnaires to PDF files and then used the QRScan tool to automatically register and archive these PDF files based on the individual QR codes.

The QR codes can be stored as a file attribute for faster future file processing. If automatic QR code recognition fails, you can manually add the file attribute to the PDF file. QRScan can move and rename the PDF files according to their QR code. Sequential numbering will be appended as a suffix to the file name to avoid trouble with PDF files that share the same QR code. If you provide a text file with codes (all on seperate lines), QRScan can generate PNG image files with the corresponding QR code, which you can use to incorporate QR codes in your printed documents in the first place, for example using Microsoft Word's mail merge feature to add the images.

The provided executable JAR is ready to use. Good QR code recognition is attained when documents have been scanned at a resolution of 300 DPI. Java 8 or more recent is required. A big thanks to the following projects: PDFBox by The Apache Software Foundation, Java ImageIO plugin for JBIG2, Java Advanced Imaging Image I/O Tools API, and the ZXing project.

GitHub Download executable Java MIT license