x=c('1a2','3a4','4a4')
col_split(x,split='a')
col_split(x = x,reg_expr = '[a-z]')
#two splits
df=data.frame(result=c('A, B-C',
'A, C-D',
'E, F-G'))
col_split(x = df[,1],split = c(',','-'))
Run the code above in your browser using DataLab