How to reshape data with tidyr’s new pivot functions

How to reshape data with tidyr’s new pivot functions

Assessment

Interactive Video

Architecture, Social Studies

University

Hard

Created by

Quizizz Content

FREE Resource

This video tutorial introduces the new pivot functions in TidyR, replacing the older gather and spread functions. It explains the differences between wide and long data formats and demonstrates how to use the pivot_longer and pivot_wider functions to reshape data. The tutorial also covers the syntax and arguments for these functions, highlighting their flexibility and ease of use.

Read more

2 questions

Show all answers

1.

OPEN ENDED QUESTION

3 mins • 1 pt

Describe the syntax required for the pivot_longer function.

Evaluate responses using AI:

OFF

2.

OPEN ENDED QUESTION

3 mins • 1 pt

What is the purpose of the pivot_wider function in Tidy R?

Evaluate responses using AI:

OFF