incase (Q125339)

From MaRDI portal





Pipe-Friendly Vector Replacement with Case Statements
Language Label Description Also known as
default for all languages
No label defined
    English
    incase
    Pipe-Friendly Vector Replacement with Case Statements

      Statements

      0 references
      0.3.1
      6 June 2021
      0 references
      0.1.0
      15 September 2020
      0 references
      0.2.0
      17 December 2020
      0 references
      0.2.1
      14 January 2021
      0 references
      0.3.0
      3 April 2021
      0 references
      0.3.2
      21 August 2023
      0 references
      0 references
      21 August 2023
      0 references
      Offers a pipe-friendly alternative to the 'dplyr' functions case_when() and if_else(), as well as a number of user-friendly simplifications for common use cases. These functions accept a vector as an optional first argument, allowing conditional statements to be built using the 'magrittr' dot operator. The functions also coerce all outputs to the same type, meaning you no longer have to worry about using specific typed variants of NA or explicitly declaring integer outputs, and evaluate outputs somewhat lazily, so you don't waste time on long operations that won't be used.
      0 references
      Q27533 (Deleted Item)
      0 references
      0 references
      0 references
      0 references
      0 references

      Identifiers

      0 references