Get the exponent of any number or numbers

get_exponent(y = NULL, x = NULL)

Arguments

y

The number or numeric columns for which an exponent is required

x

The power to which y is raised

Value

A data.frame object showing the value,power and result

Details

Depends on the expo and expo1 functions in expo

Examples

df<-data.frame(A=c(1123,25657,3987))
get_exponent(df,3)
#> Warning: Replacing all numeric columns with their exponents inplace
#>              A
#> 1 1.416248e+09
#> 2 1.688953e+13
#> 3 6.337803e+10
get_exponent(1:5, 2)
#> [1]  1  4  9 16 25