A quick look at dplyr’s new across() function

A quick look at dplyr’s new across() function

Assessment

Interactive Video

Architecture, Social Studies

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial introduces the new 'across' function in Dplyr 1.0, demonstrating its use for applying functions across multiple columns in a data frame. The instructor sets up the environment, loads necessary packages, and prepares a COVID-19 dataset for analysis. The tutorial covers basic and advanced usage of the 'across' function, including summarizing data and applying multiple functions like median and maximum. The video emphasizes the function's ability to simplify code by avoiding the need to name each column individually.

Read more

2 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

What does the 'cross' function allow you to do with data frames?

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

Explain how to create a summarized data frame with both median and maximum values using the 'cross' function.

Evaluate responses using AI:

OFF