Learn R Programming

COINr (version 1.1.14)

log_CT_orig: Log-transform a vector

Description

Performs a log transform on a numeric vector.

Usage

log_CT_orig(x, na.rm = FALSE)

Value

A log-transformed vector of data, and treatment details wrapped in a list.

Arguments

x

A numeric vector.

na.rm

Set TRUE to remove NA values, otherwise returns NA.

Details

Specifically, this performs a "COIN Tool log" transform: log(x-min(x) + 1).

Examples

Run this code
x <- runif(20)
log_CT_orig(x)

Run the code above in your browser using DataLab