The 365 Data Science team is proud to invite you to our own community forum. A very well built system to support your queries, questions and give the chance to show your knowledge and help others in their path of becoming Data Science specialists.
Ask
Anybody can ask a question
Answer
Anybody can answer
Vote
The best answers are voted up and moderated by our team

Error in “R Programming” Course -> “Tidying your data – gather() and separate()”

Error in “R Programming” Course -> “Tidying your data – gather() and separate()”

0
Votes
2
Answer

I found a little error (url: https://365datascience.teachable.com/courses/295218/lectures/4541840)

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

365 Team

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

0
Votes

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

Exactly! Cheers!

8 months