📄 infiling.hlp
字号:
{smcl}
{* 03mar2005}{...}
{cmd:help infiling}
{hline}
{title:Title}
{p2colset 5 19 21 2}{...}
{p2col :{hi:[D] infile} {hline 2}}Overview of reading data into Stata{p_end}
{p2colreset}{...}
{title:Description}
{pstd}
This entry provides a quick reference for determining which method to use for
reading non-Stata data into memory.
See {hi:[U] 21 Inputting data} for more details.
{title:Summary of the different methods}
{title:{opt insheet} (see {help insheet})}
{phang}
1. {opt insheet} reads text (ASCII) files created by a spreadsheet or
database program.
{phang}
2. The data must be tab-separated or comma-separated, but not both
simultaneously, and cannot be space-separated.
{phang}
3. A single observation must be on only one line.
{phang}
4. The first line of the file can optionally contain the names of the
variables.
{title:{opt infile} (free format){hline 2}infile without a dictionary (see {help infile1})}
{phang}
1. The data can be space-separated, tab-separated, or comma-separated.
{phang}
2. Strings with embedded spaces or commas must be enclosed in quotes
(even if tab- or comma-separated).
{phang}
3. A single observation can be on more than one line, or there can even be
multiple observations per line.
{title:{cmd:infix} (fixed format) (see {help infix})}
{phang}
1. The data must be in fixed-column format.
{phang}
2. A single observation can be on more than one line.
{phang}
3. {opt infix} has simpler syntax than {opt infile} (fixed format).
{title:{cmd:infile} (fixed format){hline 2}infile with a dictionary (see {help infile2})}
{phang}
1. The data may be in fixed-column format.
{phang}
2. A single observation can be on more than one line.
{phang}
3. {opt infile} (fixed format) has the most capabilities for reading data.
{title:{cmd:fdause} (see {help fdause})}
{phang}
1. {opt fdause} reads SAS XPORT Transport format files{hline 2}the file format
required by the U.S. Food & Drug Administration (FDA).
{phang}
2. {opt fdause} will also read value label information from a
{opt formats.xpf} XPORT file, if available.
{title:{cmd:haver} (Windows only) (see {help haver})}
{phang}
1. {opt haver} reads Haver Analytics ({browse "http://www.haver.com/"})
database files.
{phang}
2. {opt haver} is only available for Windows and requires a corresponding DLL
({opt DLXAPI32.DLL}) available from Haver Analytics.
{title:{cmd:odbc} (see {help odbc})}
{phang}
1. ODBC, an acronym for Open DataBase Connectivity, is a standard for
exchanging data between programs. Stata supports the ODBC standard for
importing data via the {opt odbc} command and can read from any ODBC data
source on your computer.
{title:{cmd:xmluse} (see {help xmlsave:xmluse})}
{phang}
1. {opt xmluse} reads Extensible Markup Language (XML) files{hline 2}highly
adaptable text format files derived from GSML.
{phang}
2. {opt xmluse} reads either a {opt dta} file or an {opt excel} XML file into
Stata.
{title:Also see}
{psee}
Manual: {bf:[D] infile}
{psee}
Online: {helpb edit},
{helpb fdause},
{helpb haver},
{help infile1},
{help infile2},
{helpb infix},
{helpb input},
{helpb insheet},
{helpb odbc},
{helpb xmlsave}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -