TidierOrg / TidierData.jl

Tidier data transformations in Julia, modeled after the dplyr/tidyr R packages.
MIT License
85 stars 7 forks source link

New created columns inside @mutate is not immediately available within the call #121

Open yanwenwang24 opened 6 days ago

yanwenwang24 commented 6 days ago

Suppose the df does not have column x1 initially.

@chain df begin
    @mutate(
        x1 = 1,
        x2 = x1 + 1
    )
end

This works in dplyr but does work in TidierData. I wonder if it is possible to call the newly created column with the same call? Many thanks.

drizk1 commented 5 days ago

This is not yet supported due to how the underlying Dataframes.jl transform function behaves.

A more in depth discussion is available here