Skip to content

.by support in fill()/complete()/expand() #1439

Open

Description

@markfairbanks

To match the .by implementation in dplyr v1.1.0 functions.

Activity

  1. DavisVaughan commented on Jan 3, 2023

    @DavisVaughan
    Member

    Will have to wait for tidyr 1.4.0 (i.e. after dplyr 1.1.0 is released)

  2. hadley commented on Jan 7, 2023

    @hadley
    Member

    @DavisVaughan does it have to? We added it to the upcoming dbplyr release.

  3. DavisVaughan commented on Jan 8, 2023

    @DavisVaughan
    Member

    That seems different though because dbplyr controls the whole underlying implementation. Here we just pass through to a dplyr function like mutate() or summarise(), so without dplyr 1.1.0 the arguments wouldn't do anything.

    I guess we could check to see if dplyr 1.1.0 is installed if .by is attempted to be used and error if there isn't a new enough version of dplyr, but that didn't feel worth it when I originally thought about this

  4. hadley commented on Jan 9, 2023

    @hadley
    Member

    Ok, makes sense.

  5. mattwarkentin commented on Feb 2, 2023

    @mattwarkentin

    Absolutely love the addition of the per-operation .by/by arguments in dplyr. Now that dplyr 1.1.0 is released, will these be added to the aforementioned tidyr functions. Seems like tidyr::nest() already got the makeover.

  6. DavisVaughan commented on Feb 6, 2023

    @DavisVaughan
    Member

    We will add them in the next tidyr release. It was easier with nest() because tidyr owns the implementation. With the others we call out to dplyr so we needed to wait on 1.1.0

  7. joeycouse commented on Aug 15, 2025

    @joeycouse

    +1 on adding .by to complete and expand

  8. DanChaltiel commented on Sep 10, 2025

    @DanChaltiel

    Hi @DavisVaughan
    Is a release planned in the near future?
    The PR has been merged for more than 1 year now, and it would be nice to be able to enjoy fill(.by), even if the other two are not done yet.

  9. statzhero commented on Jan 19, 2026

    @statzhero

    Checking in on this as well, just in case I missed something. UPDATE: I see it in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions