moodymudskipper / tb

IN ~PROGRESS my own take on `[.data.frame`
0 stars 0 forks source link

`:=` is used as an extension of `=` #10

Closed moodymudskipper closed 4 years ago

moodymudskipper commented 5 years ago

In the tidyverse := is an extension of =, it allows us to use !!, {}, sym(), enquo() etc on the lhs.

In data.table it's a bit different, as it's used mainly to overcome the fact that it's used in the j argument. It's also used in a somewhat similar way as in the tidyverse with (foo) := bar being similar to !!sym(foo) := bar.

In our case :

Definitions :

If used in the ... (most common usage) :