Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Changing column data types
Basic data cleaning
Summary
13. Exercise 3

Instruction

Separate one column into two columns.

Exercise

Import the proper package and separate the subject_score columns into two columns, subject and score. Assign them to the students function.

Note: Use a colon (:) as the sep argument.

Stuck? Here's a hint!

Just import the tidyrpackage:

library(tidyr)

And use the following template to separate columns:

separate(
  students,
  col=...,
  sep=":",
  into=c(...))