Search Header Logo
Conditional Statements in R:   if_else() and case_when() Functions

Conditional Statements in R: if_else() and case_when() Functions

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

In this tutorial, Greg Martin introduces the Star Wars dataset and demonstrates how to use the tidyverse and GT Extras packages for data manipulation and table formatting. The video covers the use of the if_else function for conditional data changes and the case_when function for handling multiple conditions simultaneously. The tutorial is designed to help viewers replicate the process on their own computers, enhancing their learning experience.

Read more

3 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the significance of changing humans with brown hair to pink hair?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

How does the tutorial suggest handling NA values in hair color?

Evaluate responses using AI:

OFF

3.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the final outcome of the code run in the tutorial regarding hair color?

Evaluate responses using AI:

OFF

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?