Skip to contents

Applies 2^x, then formats with journal conventions and 1 decimal place.

Applies 2^x, then formats with journal conventions and 2 decimal places.

Usage

format_num_as_journal_invlog2_1(x)

format_num_as_journal_invlog2_2(x)

Arguments

x

Numeric vector of values on the log-2 scale.

Value

Character vector of journal-formatted numbers.

Character vector of journal-formatted numbers.

Examples

# Transform log2 values back to original scale
format_num_as_journal_invlog2_1(c(1, 2, 3))  # 2^1, 2^2, 2^3
#> [1] "2.0" "4.0" "8.0"
format_num_as_journal_invlog2_2(c(1, 2, 3))
#> [1] "2.00" "4.00" "8.00"