splitting strings into letters using R snippet node

@0nly4phil for the second example as.data.table() as well as a conversion to character seems to do the trick.

The transfer is done with “data.table”:

df1 <- knime.in
df1 <- as.data.frame(df1)
a <- as.character(df1$'Column Header')
a <- strsplit(a,split="")
b <-matrix(unlist(a),ncol=10,byrow=T)

df1$'splt'<-b
knime.out <- as.data.table(df1)

Convert data from KNIME to R and back with split of text column - KNIME Forum (76340).knwf (88.8 KB)

3 Likes