header-map

Renames column header names

pebblestream:header-map("Header Old", "Header New"[, ...])

Header Old is renamed to Header New, specified in pairs.

Example

Consider the worksheet Raw Accounts

IDBalanceLast Name
04233Jones
121Smith
20George
333Jones

Apply the following directive declaration to remap headers:

pebblestream:from("Raw Accounts")
pebblestream:header-map("Balance", "VALUE", "Last Name", "OWNER_LAST")

To create the DB-friendly Accounts worksheet:

IDOWNER_LASTVALUE
0Jones4233
1Smith21
2George0
3Jones33