unzip_and_cleanup: Tidy up HMRC data files

Description Usage Arguments Details Value Examples

Description

Unzips all zipfiles in a folder and removes the zipfiles. Tidies up the filenames of the downloads.

Usage

1
unzip_and_cleanup(extractdir)

Arguments

extractdir

folder containing data files

Details

All files are set to lower case. HMRC trader details files have ..txt suffixes changed to .tsv. Inconsistent filenames in February 2009 and May/June 2014 data are fixed.

Value

The contents of extractdir are renamed as appropriate. Any .zip files in the folder are deleted.

Examples

1

lee269/tradetools documentation built on May 9, 2019, 9:59 p.m.