deduped_map {deduped} | R Documentation |
Apply a function to each unique element
Description
DEPRECATED as of deduped 0.2.0.
Please use deduped(lapply)()
or deduped(purrr::map)()
instead.
Usage
deduped_map(.x, .f, ..., .progress = FALSE)
Arguments
.x |
A list or atomic vector. |
.f |
A function, specified in one of the following ways:
|
... |
Additional arguments passed on to the mapped function. We now generally recommend against using # Instead of x |> map(f, 1, 2, collapse = ",") # do: x |> map(\(x) f(x, 1, 2, collapse = ",")) This makes it easier to understand which arguments belong to which function and will tend to yield better error messages. |
.progress |
Whether to show a progress bar. Use |
Value
A list whose length is the same as the length of the input,
matching the output of purrr::map()
.