Seksjon 1. Kapittel 10
single
Challenge: 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 namedsubject_yearand a column namedscore. - Use
separate()to split thesubject_yearcolumn into two columns:subjectandyear.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 10
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår