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)
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
Hey Eli,
Yes you are right. Because "." is the default value.
Thanks for the awesome course!
Christian