Using stringreplacer to rename a column

I have a column as follows

timepoint
----------
baseline, 4.0
0, 4.0
0.5, 4.0
1, 4.0
2, 4.0
3, 4.0
12, 4.0

The first digit represents the hour, and the second one, the day.
I want to use a string replacer node to get this

timepoint
----------
Day4Baseline
Day4Hour0.5
Day4Hour1
Day4Hour2
Day4Hour3
Day4Hour12

Much thanks

Your title and your request don’t seem to match.

You can accomplish your desired task by using a Cell Splitter node to split the cells via the comma delimiter. You can create the Hour labels using the tips you were given in your last post. Then you can use a String Manipulation node to join the contents of the new cells with your Day and Hour labels.

2 Likes

Hi @RoyBatty296
You can do it by String Manipulation node:


see attached WF.
strmanipulation.knwf (6.2 KB)

1 Like

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