dfply icon indicating copy to clipboard operation
dfply copied to clipboard

mutate not support the new variables that created above

Open slsongge opened this issue 2 years ago • 2 comments

in R: A is not in df, but it can run df %>% mutate(A = a, B = A)

but, df >> mutate(A = a, B = A) error: name 'A' is not defined

Is this feature supported now?

slsongge avatar Mar 18 '22 09:03 slsongge

You can try like this df >> mutate(A = a) >> mutate(B = A)

josemou8 avatar May 08 '22 07:05 josemou8

good idea

---Original--- From: @.> Date: Sun, May 8, 2022 15:23 PM To: @.>; Cc: @.@.>; Subject: Re: [kieferk/dfply] mutate not support the new variables that created above (Issue #107)

You can try like this df >> mutate(A = a) >> muate(B = A)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

slsongge avatar Oct 11 '22 08:10 slsongge