Skip to contents

Exponentiates a variable.

Usage

exp_transform(x, base = exp(1))

Arguments

x

The variable to exponentiate.

base

The base of the exponentiation. Defaults to exp(1) (natural exponentiation).

Value

The exponentiated variable.

Examples

exp_transform(2, base = 10) # Returns 100
#> [1] 100
exp_transform(2) # Returns exp(2)
#> [1] 7.389056