INTEXT: Stata module to read text files into string variables
Roger Newson
Statistical Software Components from Boston College Department of Economics
Abstract:
The intext package inputs arbitrary text files into string variables in the memory, without removing leading and trailing blanks (as infix does). intext contains 2 programs, intext and tfconcat. intext inputs a single text file into a list of generated string variables, generating enough variables to contain the longest input text line (including leading and trailing blanks). tfconcat concatenates a list of arbitrary text files into a new Stata data set in memory, overwriting any previous data. The new data set contains a list of string variables (as generated by intext), and also, optionally, additional variables, indicating, for each observation, its input text file of origin and/or its sequential order as a line within its input text file of origin. Therefore, tfconcat is like dsconcat, except that it concatenates text files instead of Stata data sets. intext is an inverse of outfile,runtogether, because the generated string variables created by intext can be output using outfile,runtogether to produce a duplicate of the original file. Therefore, intext enables Stata programs to read Stata programs, just as outfile,runtogether enables Stata programs to write Stata programs.
Language: Stata
Requires: Stata version 13.0
Keywords: file handling; input; string variables (search for similar items in EconPapers)
Date: 2002-10-24, Revised 2017-04-01
Note: This module may be installed from within Stata by typing "ssc install intext". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/i/intext.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/i/intext.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/t/tfconcat.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/t/tfconcat.sthlp help file (text/plain)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s429001
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().