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

Hard

Created by

Quizizz 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