Replace Cluster Value to Desired Name

Hi, is there any ways I could change the output results name of node results?
For instance, in file below I want the output file to show Day. So, instead of output file “cluster_9” I want it to be “Day_9”

I use the string manipulation but it still showing cluster name.

KNIME_project.knwf (25.2 KB)

Hi @andersenyunan,

Use this expression in a String Manipulation node after the K-Means node in your workflow:
regexReplace($Cluster$, "cluster", "Day")

:blush:

P.S. By your workflow I mean the workflow you have for your real task where the K-Means node is used for clustering and you are going to create separate files for each cluster.

2 Likes

Thanks @armingrudd for the help!

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.