⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 infile1.hlp

📁 是一个经济学管理应用软件 很难找的 但是经济学学生又必须用到
💻 HLP
字号:
{smcl}
{* 23feb2005}{...}
{cmd:help infile1}{right:dialog:  {dialog infile_free:infile (free format)}}
{hline}

{title:Title}

{p2colset 5 33 35 2}{...}
{p2col :{hi:[D] infile (free format)} {hline 2}}Read unformatted ASCII (text)
data{p_end}
{p2colreset}{...}


{title:Syntax}

{p 8 15 2}
{opt inf:ile}
{varlist}
[{cmd:_skip}[{opt (#)}]
[{varlist} [{cmd:_skip}[{opt (#)}] {it:...}]]]
{helpb using} {it:filename}
{ifin}
[{cmd:,} {it:options}]

{synoptset 17 tabbed}{...}
{synopthdr}
{synoptline}
{syntab :Main}
{synopt :{opt clear}}replace data in memory{p_end}

{syntab :Options}
{synopt :{opt a:utomatic}}create value labels from non-numeric data{p_end}
{synopt :{opt by:variable(#)}}organize external file by variables; {it:#} is
number of variables{p_end}
{synoptline}
{p2colreset}{...}
{p 4 6 2}
If {opt filename} is specified without an extension, {opt .raw} is
assumed.{p_end}
{p 4 6 2}Note for Stata for Windows and Stata for Macintosh users: If your
{it:filename} contains embedded spaces, remember to enclose it in double
quotes.{p_end}


{title:Description}

{pstd}
{opt infile} reads into memory from a disk a dataset that is not in Stata
format.

{pstd}
Here we discuss using {opt infile} to read free-format data, meaning datasets
in which Stata does not need  to know the formatting information.  Another
variation on {opt infile} allows reading fixed-format data; see
{help infile2}.
Yet another alternative is {helpb insheet}, which is easier to
use if your data are tab- or comma-separated and contain one observation per
line.  Stata has other commands for reading data, too.  If you are not certain
that {opt infile} will do what you are looking for, see {help infiling} and 
{bind:{bf:[U] 21 Inputting data}}.

{pstd}
After the data are read into Stata, they can be saved in a Stata-format
dataset; see {helpb save}.


{title:Options}

{dlgtab:Main}

{phang}{opt clear} specifies that it is okay for the new data to replace the
data that are currently in memory.
To ensure that you do not lose something important, {opt infile} will
refuse to read new data if other data are already in memory.  {opt clear}
allows {opt infile} to replace the data in memory.  You can also drop
the data yourself by typing {cmd:drop _all} before reading new data.

{dlgtab:Options}

{phang}{opt automatic} causes Stata to create value labels from the non-numeric
data it reads.
It also automatically widens the display format to fit the longest label.

{phang}{opt byvariable(#)} specifies that the external data file is
organized by variables rather than by observations.  All the observations on the
first variable appear, followed by all observations on the second variable,
and so on.  Time-series datasets sometimes come in this format.


{title:Examples}

{phang}{cmd:. infile a b using myfile}{p_end}
{phang}{cmd:. infile a b c d using myfile}{p_end}
{phang}{cmd:. infile a b c d using myfile if b==1}{p_end}
{phang}{cmd:. infile a b c d if uniform()<=.1}{p_end}


{title:Also see}

{psee}
Manual:  {bf:[D] infile (free format)}

{psee}
Online:  {help infile2},
{helpb input},
{helpb insheet},
{helpb outfile},
{helpb outsheet},
{helpb save}
{p_end}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -