9

I have a transposition that I'd like to apply to multiple columns. The Grel generated shows the columnName or Base name, but that means I have to edit the code for each column. Thought there was a way to find the column index and have code that would apply to the "current" column, a list of columns by index or all columns.

Specifically, I'd like to trim whitespaces and have 20+ columns.

Explored foreach and row.index but can't find anything like column index.

pnuts
  • 58,317
  • 11
  • 87
  • 139
Sonicthoughts
  • 548
  • 1
  • 4
  • 16

2 Answers2

1

Unfortunately multi-column operations are not supported by the current version of Refine.

Tom Morris
  • 10,490
  • 32
  • 53
1

I have been able to trim leading and trailing white space for entire projects with OpenRefine 3.2.

A standard column gets added to all projects "all". At the top of the "all" column click the down arrow > select "Transform", then in the Expression box enter value.trim() and click ok.

Next you will be allowed to select via check box the columns you would like transformed. Click ok & that should run over all selected columns for your project.

J. Scott Elblein
  • 4,013
  • 15
  • 58
  • 94
WorkBoots
  • 21
  • 2