# Step 1: Create two data frames with the same columns df1 <- data.frame(col1 = c(1, 2), col2 = c("a", "b")) df2 <- data.frame(col1 = c(3, 4), col2 = c("c", "d")) print(df1) print(df2) # Step 2: Use rbind to combine the two data frames by row combined_df <- rbind(df1, df2) # Step 3: Print the resulting data frame print(combined_df)