# Logarithmic transformations
d <- distionary::dst_unif(1, 10)
log(d) # Natural log
log(d, base = 10) # Log base 10
log10(d) # Also log base 10
sqrt(d) # Square root of uniform
# Exponential transformation
d2 <- distionary::dst_norm(0, 1)
d3 <- distionary::dst_beta(5, 4)
exp(d2) # Log-normal distribution
exp(d3) # No simplification
# These can be combined
log(exp(d2)) # Returns back to normal distribution
log(exp(d3)) # Still returns d3.
5^(log(d3, base = 5)) # Still returns d3.
Run the code above in your browser using DataLab