https://digital.nhs.uk/services/organisation-data-service/data-downloads/office-for-national-statistics-data
V1.0 - 140521 - Sarah Eaglesfield
#1. Extract the Data from NHS Postcode Download above
#2. Modify script to suit your needs ensuring paths and lookup tables are correct
#3. Run - it will produce a CSV of the output in the output folder
#There are 41 columns of data in the dataset. These are detailed on P27-P40 the User Guide PDF.
#To Add An Additional Column
#1. Download the corresponding lookup table from the above URL
#2. Change the col_type from col_skip to its actual type given in comments on the sam line
#3. Add the file location to the fnames list
#1. Make Sure The Path of the Filename is Set Correctly Relative to the Base Directory for R
#2. Some NHS Lookup Tables have 3 columns - drop the unneeded column on an adhoc basis