I have a dataframe containing a column named COL which is structured in this way:
VALUE1###VALUE2
The followin
You can use ft_regex_tokenizer followed by sdf_separate_column.
ft_regex_tokenizer will split a column into a vector type, based on a regex. sdf_separate_column will split this into multiple columns.
mydf %>%
ft_regex_tokenizer(input_col="mycolumn", output_col="mycolumnSplit", pattern=";") %>%
sdf_separate_column("mycolumnSplit", into=c("column1", "column2")
UPDATE: in recent versions of sparklyr, the parameters input.col and output.col have been renamed to input_col and output_col, respectively.