Using new fields created by put and splitax (Miller 6) #651
-
Miller 6 features the
magically creates two new fields Going further, however, like
does not create the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 11 replies
-
Hey @NikosAlexandris . Slightly off-topic, but could you specify a bit more explcitly that you are talking about Miller 6 here? It's clear only by looking at the docs link. |
Beta Was this translation helpful? Give feedback.
-
First and best, read the developer's comments below! Then, the solution I have found, is to either split the calls via a Overall and in the case of using two calls, like mlr put '$property = splitax($1, "_vs_")' |mlr put '$new = ${property.1}' if a string does not meet the split condition, only one field mlr put '$new.1 = "" ; $new.2 = "" ; $property = splitax($1, "_vs_")' then put '$new = ${property.1}' work, as well as preserving "continuity" in the data, i.e. all records have the same (number of) fields. |
Beta Was this translation helpful? Give feedback.
First and best, read the developer's comments below! Then, the solution I have found, is to either split the calls via a
|
or pre-create thenew.1
andnew.2
fields, since fields will be assigned th…