Skip to content

Map functions with vctrs semantics #1941

@tzakharko

Description

@tzakharko

It appreas that the ecosystem is still lacking a map primitive with vctrs-compatible semantics. I recall there was an effort to implement mapping as part of vctrs (e.g. #1227), which was abandoned in favour of map_vec() in purrr. However, purrr does not offer vctrs-compatible semantics, in particular it has inconsistent treatment of data frames (see for example tidyverse/purrr#838).

I believe that the vctrs approach to treating tables as row-iterable vectors is very powerful and allows the intuitive composition of complex data. This semantics also powers many advanced features within dplyr. Are there plans to bring this to list iteration?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions