Skip to content

mapnm_* #240

@hadley

Description

@hadley

Would be useful to have

mapn <- function(.x, .f, ...) {
  out <- map2(names(.x), .x, .f, ...)
  names(out) <- names(.x)
  out
}

For more complicated stuff it is better off to using a tribble + list-cols etc, but this is still a very useful pattern.

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