Stack
This dialog will help user to stack 2 datasets on top of each other. User can select one of the following options.
- Steps
Bind Rows: Stacks the 2 datasets exactly as they are. If a variable name is common to both datasets, values will fill in as user expects. If a dataset A contains a variable say var1 that is not present in the other dataset B, NA's will appear in variable var1 for all rows that correspond to dataset B. All options below require that both datasets share the same variables.
Union: stacks the datasets and removes duplicates
Intersect: keeps rows common to both
Difference: Keeps rows in 1st dataset, not in 2nd Depending on the option selected, the functions bind_rows, union, intersect and setdiff in the package dplyr are called.


Last modified: 01 October 2025