my_log: Log transformation

Description Usage Arguments Details Value Examples

View source: R/my_log.R

Description

This function perform log transformation.

Usage

1
my_log(x, base = exp(1), na.omit = FALSE)

Arguments

x

The vector to be transformed. x>=0

base

The base of the log transformation, the default is exp(1)

na.omit

Whether or not to remove NAs, the default is FALSE.

Details

This function calculate the log transform of a vector.

This function can only calculate the log transformation of x in the range: base^(-100) <= x <= base^100

Value

A vector that is the log transformation of x.

Examples

1
2
my_log(7,2)
my_log(500:510, 4)

hannahdxz/powers documentation built on May 29, 2019, 12:04 p.m.