Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Tidying Data with tidyr | Data Cleaning and Wrangling Essentials
/
Data Cleaning and Wrangling in R
Seksjon 1. Kapittel 10
single

single

bookChallenge: Tidying Data with tidyr

Sveip for å vise menyen

Oppgave

Sveip for å begynne å kode

In this challenge, you will practice reshaping and tidying a dataset using tidyr functions. You will convert the dataset to long format with pivot_longer(), and then split a combined column into two separate columns using separate().

  • Use pivot_longer() to convert the score columns into a long format, creating a column named subject_year and a column named score.
  • Use separate() to split the subject_year column into two columns: subject and year.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 10
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt