I have the following data.table
data.table
x = structure(list(f1 = 1:3, f2 = 3:5), .Names = c(\"f1\", \"f2\"), row.names = c(NA, -3L), class = c(\"data.tab
The best way is to write a vectorized function, but if you can't, then perhaps this will do:
x[, func.text(f1, f2), by = seq_len(nrow(x))]