Skip to main content

Section 4.6 Key Takeaways

  • To create data frames in R, use the data.frame command.
  • To merge data in R, you can:
    • Bind rows (rbind())
    • Join (merge or any of the SQL commands, depending on the desired outcome)
  • Use pivot_longer() to turn wide formatted data into long format
  • Use pivot_wider() to turn long formatted data into wide format
  • Just because the means/averages of two variables are different does not mean that they are statistically different.
  • To check to see if the difference between two means is statistically significant, perform a t.test using the t.test() command
    • Depending on how the data is structured, this will either be a paired or unpaired t.test.