Get access to all lessons in this course.
-
RMarkdown
- Why Use RMarkdown?
- RMarkdown Overview
- YAML
- Text
- Code Chunks
- Wrapping Up
-
Data Wrangling and Analysis
- Getting Started
- The Tidyverse
- select
- mutate
- filter
- summarize
- group_by
- count
- arrange
- Create a New Data Frame
- Crosstabs
- Wrapping Up
-
Data Visualization
- An Important Workflow Tip
- The Grammar of Graphics
- Scatterplots
- Histograms
- Bar Charts
- color and fill
- scales
- Text and Labels
- Plot Labels
- Themes
- Facets
- Save Plots
- Wrapping Up
-
Wrapping Up
- You Did It!
Fundamentals of R
count
This lesson is locked
This lesson is called count, part of the Fundamentals of R course. This lesson is called count, part of the Fundamentals of R 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 count 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
You need to be signed-in to comment on this post. Login.
Jodi Fender
April 2, 2021
Hi - I had this working with drop.na (x), but wanted to play around with drop.na for multiple variables if that could be useful in the future. I tried it a couple of ways, but didn't get it to work and then something went wrong and R restarted, so then I loaded packages again, but am still having issues with: Error in drop.na(., education) : could not find function "drop.na" Thanks for any tips!
Jodi Fender
April 2, 2021
drop_na! ack. Sorry... you can disregard question, except I'll try to see about dropping na from multiple variables at once. You could just delete my comment if you'd like in the moderation review process. :)
David Keyes
April 2, 2021
No worries! I'll leave it there because it may come up for others. As you may have realized, tidyverse functions tend to use _ between words while base R uses .
Tatiana Bustos
July 27, 2022
I accidentally put "education" instead of education and the output returned 1 row of 1000. Is this a potential way to use the count function for qualitative variables? Im not sure I understand why there was 1 row for "education" and 1000 counts. Just curious!
David Keyes
July 28, 2022
I'm not quite sure what you mean. Could you paste your code in so I can see?