A little announcement. A lot to explore.

Happy learning!

Explore lessons, including SAS & R programs and practice data.

Search lessons

Type at least 3 characters to see matching lessons.

Open SAS ↗Open R ↗
← SASnRAppending datasets

Introduction

  • Appending datasets means stacking rows — taking two tables with the same (or compatible) column structure and producing one table with all the rows combined.
  • A typical clinical use case is combining data from multiple studies or sites into a single analysis-ready dataset.
  • SAS offers PROC APPEND or a DATA step with multiple SET datasets. Tidyverse provides bind_rows(). Base R provides rbind().
  • This lesson appends a small second dataset to the original CLASS dataset, producing a combined table.
  • After running, the combined dataset has all rows from both inputs.

Appending datasets