Data editing > Changing the contents of a variable > Adding codes into a column
 
Adding codes into a column
Quick reference
To add codes into a column in addition to those that are already there, type:
emit cn1'codes1' [, cn2'codes2' ... ]
More information
The emit statement inserts codes into a column leaving the original contents intact. Its format is:
emit cn'p'
Suppose you have:
----+----7
4
5
&
and you write emit c567'3'. It produces:
----+----7
3
4
5
&
More than one column can be entered on each line, provided that each one is separated by a comma.
emit c567'7', c110'2', c(t5+6)'7'
Note emit can only be used with single columns; string variables are not valid: emit c(109,110)$99$ does not work.
See also
Changing the contents of a variable