Chapter 2. Combining Data Sets Vertically: Concatenating, Interleaving, and Appending Data Sets

Example 2.1 Concatenating Data Sets 14

Example 2.2 Interleaving Observations from Two or More Data Sets Based on a Common Variable 17

Example 2.3 Appending One Data Set to the End of Another Data Set 20

Example 2.4 Selecting Unique Rows When Concatenating Tables 23

Example 2.5 Selecting Rows in Common When Concatenating Tables 26

Example 2.6 Selecting Observations Unique to Each Data Set When Concatenating Data Sets 28

When you combine data sets vertically, you concatenate the data sets one after another, or you interleave observations from the data sets in order by one or more variables. Observations are not combined side-by-side horizontally or overlaid. ...

Get Combining and Modifying SAS® Data Sets: Examples Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.