TidierData.jl ― Apply transform across columns while retaining access to other variables in the row

You can use _ multiple times, then you just have to assign the first argument, too:

@chain df begin
    @mutate(_, across(startswith("β"), x -> _.τ*x))
end
3 Likes