lifecycle

Dependency-free purrr-like apply/map/iterate functions

Installation

Install the development version from Github with:

{dapr} vs. {base} & {purrr}?

{dapr} provides the ease and consistency of {purrr}, including use of ~ and .x, without all the dependencies. In other words, when you want a purrr-like experience but you need a lightweight solution.

Use

Function names use the convention *ap() where * is the first letter of output data type.

  • vap for vectors
  • lap for lists
  • dap for data frames

Vectors

  • vap_dbl() Iterate and return numeric vector.
  • vap_int() Iterate and return integer vector.
  • vap_lgl() Iterate and return logical vector.
  • vap_chr() Iterate and return character vector.