Quantcast
Channel: KNIME RSS
Viewing all articles
Browse latest Browse all 4157

Splitting column into numbers and strings

$
0
0

Hello there!

Lets say I have a column with a list of numbers attached to units and I would like to separate the numbers from the units so that I will have 2 new columns. Is there any simple way to achieve that?

There are of course different lengths of numbers and different units (which may also contain numbers). So basically what I'm trying is to split the column the first time a letter shows up.

Help is much appreciated!

Example:

column_oldcolumn_numbercolumn_unit
3250mg/kg3250mg/kg
>300mg/kg>300mg/kg
180ppm/6H180ppm/6H
15gm/m315gm/m3
1gm/m3/2H1gm/m3/3H

 


Viewing all articles
Browse latest Browse all 4157

Trending Articles