The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
The doBy package includes a suite of simple, pipe-friendly arithmetic
helper functions that make common transformations clearer and more expressive
when using the native R pipe (|>).
These helpers let you write transformations in readable pipelines without nested or hard-to-read expressions. All functions are vectorized and work with scalars or numeric vectors.
add(): add a constantsubtract(): subtract a constantmult(): multiply by a constantdivide(): divide by a constantreciprocal(): compute 1/xpow(): raise to a powerlibrary(doBy)
x <- c(1, 2, 3)
# Addition
x |> add(5)
# [1] 6 7 8
# Subtraction
x |> subtract(1)
# [1] 0 1 2
# Multiplication
x |> mult(10)
# [1] 10 20 30
# Division
x |> divide(2)
# [1] 0.5 1.0 1.5
# Reciprocal
x |> reciprocal()
# [1] 1.0000000 0.5000000 0.3333333
# Power
x |> pow(2)
# [1] 1 4 9
x |>
mult(2) |>
add(3) |>
reciprocal()
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.