Data Analysis with R Programming
Master R programming language fundamentals including data manipulation, visualization, and documentation with RStudio.
R Programming is a powerful tool for data analysis that is extensively covered in the Google Data Analytics Certificate program. R is an open-source programming language specifically designed for statistical computing and data visualization, making it ideal for analysts working with large datasets.…
GDA - Data Analysis with R Programming Example Questions
Test your knowledge of Data Analysis with R Programming
Question 1
What is the purpose of the lag() and lead() functions in dplyr when performing data cleaning operations?
Question 2
Which of the following best describes how R's memory-efficient handling of missing values (NA) benefits data analysts during exploratory data analysis?
Question 3
A credit risk analyst at a bank is building a customer segmentation model using a dataframe 'loan_applications' with columns: app_id, credit_score, annual_income, debt_ratio, loan_amount, employment_years, and approval_status. The analyst needs to create a training dataset by first selecting applications where credit_score is below 650 OR debt_ratio exceeds 0.45, then from that result, keep only rows where loan_amount is greater than $25,000 AND employment_years is at least 2. The final output should contain app_id, credit_score, debt_ratio, and loan_amount columns arranged by credit_score in ascending order. Which dplyr pipeline correctly implements this two-stage filtering approach with proper logical operator precedence?