Last answered:

01 Apr 2020

Posted on:

01 Apr 2020

0

Error in "R Programming" Course -> "Tidying your data - gather() and separate()"

I found a little error (url: https://learn.365datascience.com/courses/introduction-to-r-programming/tidying-your-data-gather-and-separate)
line: 20:
tb.separated <- tb.gathered %>% separate(column, into = c("sex", "age"), sep = ".") has the wrong regular expression.
It should be: sep = "\." All the best from Germany
Christian

2 answers ( 0 marked as helpful)
Instructor
Posted on:

01 Apr 2020

1
Greetings Christian,  Thanks for pointing that out! In this case, you could also leave out the 'sep' argument completely, which is what I'd to.      Best,  Eli
Posted on:

01 Apr 2020

0
Hey Eli, Yes you are right. Because "." is the default value. Thanks for the awesome course!   Christian

Submit an answer