A New Week!



We aren’t computer scientists and that’s okay!

We make lots of mistakes. Mistakes are funny. You can laugh with us.

Let’s go, Simba, Pumbaa, and Timon!





1 bind multiple data frames


1.1 bind_cols()

Bind multiple data frames by column.

All data frames must have the same number of rows.

2 reshape data


2.2 pivot_wider()

This function is the inverse transformation of pivot_longer().

Exercise

Use the pivot_wider() function to reshape the us_rent_income dataset

3 Recap



  • bind data frames

  • pivot_longer()

  • pivot_wider()