In that example you could do
transform!(df, :, [:B,:C] => (x,y) -> f(x,y))
and it will work. If the function works on vectors, you use this, if it is something you want to broadcast then you use ByRow.
In that example you could do
transform!(df, :, [:B,:C] => (x,y) -> f(x,y))
and it will work. If the function works on vectors, you use this, if it is something you want to broadcast then you use ByRow.