Create a New Data Frame
This lesson is called Create a New Data Frame, part of the R in 3 Months (Fall 2022) course. This lesson is called Create a New Data Frame, part of the R in 3 Months (Fall 2022) course.
Transcript
Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.
Your Turn
Complete the create a new data frame sections of the data-wrangling-and-analysis-exercises.Rmd file.
Learn More
General Data Wrangling and Analysis Resources
Because most material that discusses data wrangling and analysis with the dplyr packges does so in a way that covers all of the verbs discussed in this course, I have chosen not to separate them by lesson. Instead, here are some helpful resources for learning more about all of the tidyverse verbs discussed in this course:
Chapter 5 of R for Data Science
RStudio Cloud primer on working with data
Tidyverse for Beginners by Danielle Navarro
Learning Statistics with R by Danielle Navarro
Introduction to the Tidyverse by Alison Hill
A gRadual intRoduction to data wRangling by Chester Ismay and Ted Laderas
Have any questions? Put them below and we will help you out!
Course Content
142 Lessons
You need to be signed-in to comment on this post. Login.
Abby Isaacson • March 31, 2021
when I try this simple renaming, I get the error (below code): mental_health_over_30 % filter(age >= 30) %>% group_by(gender) %>% summarize(mean_bad_mental_health_days = mean(days_ment_hlth_bad, na.rm = TRUE)) %>% mutate(mean_bad_mental_health_days = round(mean_bad_mental_health_days, digits = 1)) %>% arrange(desc(mean_bad_mental_health_days))
summarise()
ungrouping output (override with.groups
argument)