Agriculture Reference
In-Depth Information
TableĀ 2.3
Illustration of merging two files
MASTER DATASET (IN MEMORY)
USING DATASET (ON DISK)
REP
ENTRY
PLANT COUNT
SEED STEMS
DOUBLES
ENTRY
REP
FIELD YIELDS
1
1
21
0
4
1
1
156.6
2
2
33
1
1
2
2
92.0
3
3
41
0
4
3
3
117.4
4
4
5
0
1
4
4
109.2
Figure 2.10
Windows computer dialog for merging datasets side-by-side.
To accomplish this, the first dataset, onioncount03.dta, should be
opened. This will be the master dataset. Then select Merge two data-
sets (FigureĀ 2.10).
Data > Combine datasets > Merge two datasets
Select the onionyield03.dta file as the file to be merged into the
master file.
There are several options for the type of merge that can be accom-
plished. In this case, the appropriate selection is One-to-one by
observation. The other three options require a unique identifier for
each observation in one or both files.
If all went well, when you open the Data Editor you should have
a dataset with the five variables from the first dataset (rep, entry,
 
Search WWH ::




Custom Search