You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that when summarise() or mutate() is used along with d.ply functions there are two special variables: 'n' and 'i' that describe overall number of groups and consecutive number of group. These variables mask global variables of the same names which someone pottentialy may want to use in formulas to construct new variables with summarise() or mutate(). I know that's rather unusual (perhaps even quirky) case and I don't advocate for change of this behavior. However it would be good idea to mention about it in documentation of summarise() and mutate().
The text was updated successfully, but these errors were encountered:
It seems that when summarise() or mutate() is used along with d.ply
functions there are two special variables: 'n' and 'i' that describe
overall number of groups and consecutive number of group. These variables
mask global variables of the same names which someone pottentialy may want
to use in formulas to construct new variables with summarise() or mutate().
I know that's rather unusual (perhaps even quirky) case and I don't
advocate for change of this behavior. However it would be good idea to
mention about it in documentation of summarise() and mutate().
—
Reply to this email directly or view it on GitHub #272.
Thanks, but you missed my point. When you know that d.ply() with summarise()/mutate() do such a thing, there are many simple ways to make your code working as you wish. The problem is, that it is rather hard to find out, what causes your code working wrong when this behavior isn't documented.
It seems that when summarise() or mutate() is used along with d.ply functions there are two special variables: 'n' and 'i' that describe overall number of groups and consecutive number of group. These variables mask global variables of the same names which someone pottentialy may want to use in formulas to construct new variables with summarise() or mutate(). I know that's rather unusual (perhaps even quirky) case and I don't advocate for change of this behavior. However it would be good idea to mention about it in documentation of summarise() and mutate().
The text was updated successfully, but these errors were encountered: