📄 append.hlp
字号:
{smcl}
{* 29mar2005}{...}
{cmd:help append} {right:dialog: {bf:{dialog append}}}
{hline}
{title:Title}
{p2colset 5 19 21 2}{...}
{p2col :{hi:[D] append} {hline 2}}Append datasets{p_end}
{p2colreset}{...}
{title:Syntax}
{p 8 15 2}
{cmdab:ap:pend} {cmd:using} {it:filename}
[{cmd:,} {it:options}]
{pstd}
Note that you may enclose {it:filename} in double quotes and must do so if
{it:filename} contains blanks or other special characters.
{synoptset 15}{...}
{synopthdr}
{synoptline}
{synopt :{opth keep(varlist)}}keep specified variables from appending
dataset{p_end}
{synopt :{opt nol:abel}}do not copy value label definitions from dataset on
disk{p_end}
{synopt :{opt nonote:s}}do not copy notes from dataset on disk{p_end}
{synoptline}
{p2colreset}{...}
{title:Description}
{pstd}
{cmd:append} appends a Stata-format dataset stored on disk to the end of the
dataset in memory. If {it:filename} is specified without an extension,
{cmd:.dta} is assumed.
{pstd}
Note that Stata can also join observations from two datasets into a single
observation; see {helpb merge}. See
{bind:{bf:[U] 22 Combining datasets}} for a comparison of
{cmd:append}, {cmd:merge}, and {cmd:joinby}.
{title:Options}
{phang}
{opth keep(varlist)} specifies the variables to be kept from the
using dataset. If {opt keep()} is not specified, all variables are kept.
{pmore}
The {it:varlist} in {opt keep(varlist)} differs from standard Stata varlists in
two ways: variable names in {it:varlist} may not be abbreviated, except
by the use of wildcard characters, and you may not refer to a range of
variables, such as {opt price-weight}.
{phang}
{opt nolabel} prevents Stata from copying the value label definitions from the
disk dataset into the dataset in memory. Even if you do not specify this option, label
definitions from the disk dataset never replace definitions already in memory.
{phang}
{opt nonotes} prevents {opt notes} in the using dataset from being incorporated
into the result. The default is to incorporate notes from the using dataset
that do not already appear in the master data.
{title:Examples}
{phang}{cmd:. append using newdata}
{phang}{cmd:. append using newemploy, keep(id salary status hiredate)}
{phang}{cmd:. append using mydata, keep(value pop*)}
{title:Also see}
{psee}Manual: {bf:[D] append}
{psee}
Online: {helpb cross}, {helpb joinby}, {helpb merge},
{helpb save}, {helpb use}
{p_end}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -