File reader: read all columns as strings

@schulz_d welcome to the KNIME community

Yes that is possible with the help of R’s readr package.

Assuming Location is the (well) location of the CSV file as a flow variable and it has pipes (|) as separators (you could replace that with whatever separator you use).

library(readr)

file_location <- knime.flow.in[["Location"]]

knime.out <- as.data.frame(read_delim(file=file_location
, delim="|"
, col_names = TRUE
, col_types = cols(.default = "c")))
4 Likes