Learn R Programming

depCensoring (version 0.1.7)

log_transform: Logarithmic transformation function.

Description

Computes the logarithm of a number.

Usage

log_transform(y)

Value

This function returns the logarithm of the provided argument y if it is greater than zero. If y is smaller than zero, it will return 0.

Arguments

y

Numerical value of which the logarithm is computed.