Learn R Programming

COINr (version 1.1.14)

log_GII: Log-transform a vector

Description

Performs a log transform on a numeric vector. This function is currently not recommended - see comments below.

Usage

log_GII(x, na.rm = FALSE)

Value

A log-transformed vector of data.

Arguments

x

A numeric vector.

na.rm

Set TRUE to remove NA values, otherwise returns NA.

Details

Specifically, this performs a "GII log" transform, which is what was encoded in the GII2020 spreadsheet.

Note that this transformation is currently NOT recommended because it seems quite volatile and can flip the direction of the indicator. If the maximum value of the indicator is less than one, this reverses the direction.

Examples

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

Run the code above in your browser using DataLab