Skip to contents

Replaces a object with the base 2 exponent of value.

Usage

log2(x) <- value

Arguments

x

An object.

value

A numeric atomic object.

Value

Called for the side effect of updating x.

Details

A wrapper on exp2(value).

Examples

x <- NULL
log2(x) <- c(0.5, 5)
x
#> [1]  1.414214 32.000000