It has nothing to do with data.table, but what you need is probably this: lapply(actions, f) -- View this message in context: http://r.789695.n4.nabble.com/How-to-produce-variations-of-a-text-tp4726153p4726154.html Sent from the datatable-help mailing list archive at Nabble.com.