Question: A data analyst is working with a data frame called athletes. The data frame contains a column names record that represents an athlete's wins and

A data analyst is working with a data frame called athletes. The data frame contains a column names record that represents an athlete's wins and losses separated by a hyphen (-). They want to turn this single column into individual columns for wins and losses. Which code chunk lets the analyst split the record column?
1 point
separate(athletes, record, into=c("wins,losses), delim="-")
separate(athletes, record, into=c("wins,losses), sep="-")
separate(record, athletes, into=c("wins,losses), sep="-")
separate(record, athletes, into=c("wins,losses), delim="-")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!