Skip to content

Instantly share code, notes, and snippets.

@prcleary
prcleary / example.R
Created Jan 13, 2021
Script for batch extraction of data from Microsoft Word forms, using function from deef Shiny app. Uses function from https://github.com/prcleary/deef so do check your forms are suitable for that.
View example.R
# Save this script in a directory containing "input" and "output" directories.
# Open script in RStudio and make sure working directory is where script is.
# Packages required - install if needed
library(data.table)
library(stringr)
library(XML)
library(xml2)
# Directory containing forms