I have the following dataset:
the_data <- data.frame(the_col = "a.1","b.2","c.3","d.4")
I try to split it into 2 columns. It seems that is a replicated question but what makes it different is the separator I want (the dot). I tried:
the_data %>% separate(the_col, into = c("alfa","beta"), sep = ".")
But I receive a warning and not what I want:
alfa beta X.b.2. X.c.3. X.d.4.
1 b.2 c.3 d.4
what I want is:
alfa beta
a 1
b 2
c 3
d 4
Could you please help me? Thank you.