log: log transformation

Description Usage Arguments Details Value Examples

View source: R/log.R

Description

This function performs log transformation

Usage

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

Arguments

x

The vector to be transformed if x>=0

base

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

na.omit

whether or not to remove NA, the default is FALSE

Details

The function calculates the log transformation 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
log(1:10,2)
log(200,3)

QinxinLin/powers documentation built on May 24, 2019, 7:53 a.m.