Sectie 1. Hoofdstuk 10
single
Challenge: Tidying Data with tidyr
Veeg om het menu te tonen
Taak
Veeg om te beginnen met coderen
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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 1. Hoofdstuk 10
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.