# NOT RUN {
# Values from the power_law() example:
Ai <- 38.6245
slope <- 1.9356
n <- 9
# Usual function call syntax:
a2a(Ai, slope, n, from = "Ai", to = "ai")
# Other syntaxes:
inputs <- list(Ai = Ai, slope = slope, n = n)
a2a(inputs, "ai")
require(magrittr)
inputs %>% a2a("ai")
# }
Run the code above in your browser using DataLab