7.2.4.Explore the tidyverse - quanganh2001/Google-Data-Analytics-Professional-Certificate-Coursera GitHub Wiki

R resources for more help

The R community is full of dedicated users helping each other find solutions to problems and new ways of using R. There are also a lot of great blogs where you can find tutorials and other resources. Here are a few of them:

Note: due to the corporate change from R Studio to Posit, references in the following resources may have changed.

  • Posit (RStudio): The best place to find help with R is in R itself! You can input ‘?’ or the help() command to search in R. You can also open the Help pane to find more R resources.
  • Posit Blog: Posit's blog is a great place to find information about RStudio, including company news. You can read the most recent featured posts or use the search bar and the list of categories on the left side of the page to explore specific topics you might find interesting or to search for a specific post.
  • Stack Overflow: The Stack Overflow blog posts opinions and advice from other coders. This is a great place to stay in touch with conversations happening in the community.
  • R-Bloggers: The R-Bloggers blog has useful tutorials and news articles posted by other R users in the community.
  • R-Bloggers' tutorials for learning R: This blog post from R-Bloggers compiles some basic R tutorials and also links to more advanced guides.

Test your knowledge on the tidyverse

Question 1

When working in R, for which part of the data analysis process do analysts use the tidyr package?

A. Data cleaning

B. Data calculations

C. Data security

D. Data visualization

The correct answer is A. Data cleaning. Explain: Analysts use the tidyr package for data cleaning. It works with wide and long data to make sure every part of a data table or data frame is the right data type and in the right place.

Question 2

Which tidyverse package contains a set of functions, such as select(), that help with data manipulation?

A. forcats

B. ggplot2

C. dplyr

D. readr

The correct answer is C. dplyr. Explain: The dplyr package is the tidyverse package which contains a set of functions, such as select(), that help with data manipulation. For example, select() selects only relevant variables based on their names.

Question 3

An analyst is organizing a dataset in RStudio using the following code:

arrange(filter(Storage_1, inventory >= 40), count)

Which of the following examples is a nested function in the code?

A. count

B. filter

C. inventory

D. arrange

The correct answer is B. filter. Explain: In the analyst's code, filter is the nested function. It is embedded in the argument of the broader arrange function.