df <- data.frame(x = c(NA, "a.b", "a.d", "b.c"))
df %>% separate_dt(x, c("A", "B"))
# equals to
df %>% separate_dt("x", c("A", "B"))
# If you just want the second variable:
df %>% separate_dt(x,into = c(NA,"B"))
Run the code above in your browser using DataLab