Converts all PSID fixed width format .txt files in a selected directory into .rds format. Importantly, this function assumes that all files contained in the original PSID .zip files (especially those ending in .do) are present in the same directory as the PSID .txt files, and that all files within that directory have the same names as when first unzipped.
Directory containing unzipped PSID .txt and .do files
Directory to place PSID .rds files into
1 2 3 4
Loading required package: stringr Loading required package: LaF Loading required package: foreign FAM1984.rds Converted
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.