x <- data.frame(x1=c('1:2:3','2:3:4'),x2=c('5:6:7','7:8:9'))
tidyr::separate(data=x,col='x1',into=c('a','b','c'),sep=':')
a b c x2
1 1 2 3 5:6:7
2 2 3 4 7:8:9
tidyr::separate(data=x['x1'],col='x1',into=c('a','b','c'),sep=':')
a b c
1 1 2 3
2 2 3 4
lapply(names(x),function(i) {tidyr::separate(data=x[i],col=i,into=c('a','b','c'),sep=':')})
Hi Bob,
Use separate_
Best,
Ista
--
You received this message because you are subscribed to the Google Groups "manipulatr" group.
To unsubscribe from this group and stop receiving emails from it, send an email to manipulatr+unsubscribe@googlegroups.com.
To post to this group, send email to manip...@googlegroups.com.
Visit this group at https://groups.google.com/group/manipulatr.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to manipulatr+...@googlegroups.com.