trafos function

Transformation methods.

Transformation methods.

  • logTrafoNatural logarithm.
  • sqrtTrafoSquare root.

If negative values occur and the trafo function can handle only positive values, a shift of the form x - min(x) + 1 is performed prior to the transformation if the argument handle.violations is set to warn which is the default value.

Format

None

trafoLog(base = 10, handle.violations = "warn") trafoSqrt(handle.violations = "warn")

Arguments

  • base: [numeric(1)]

    The base with respect to which logarithms are computed. Default is 10.

  • handle.violations: [character(1)]

    What should be done, if negative values occur? Setting this option to warn , which is the default, shifts the function. error

    stops the process immediately.

  • Maintainer: Jakob Richter
  • License: BSD_2_clause + file LICENSE
  • Last published: 2022-07-04