define function

Apply metadata and code transformations to a data.table