Is there a way in OpenRefine to apply a function on multiple columns?
When I have a dataset like this (with a large number of columns) and want to replace the "NA" by "NULL", like one can do in Excel with Find&Replace on the whole sheet:
ID A B C
1 3 2 4
2 NA NA 7
3 0 1 NA
I know I can do something like this to loop over all columns of a dataset:
forEach(row.columnNames,cn,cells[cn].value.replace('NA','NULL'))
Or just select some columns of interest:
forEach(['A','B','C'],cn,cells[cn].value.replace('NA','NULL'))
But this returns the result of the function applied on the columns in an array (as new column).Can I write back the result of the replace (or any other) function to the current column in OR?
Wolf