Hacker News new | ask | show | jobs
by vhhn 3118 days ago
the data.table way:

mydt[, newvar := oldvar1/oldvar2]

I could not resist.