Learn R Programming

SPOTMisc (version 1.19.52)

trans_10pow_round: 10 power x transformation with round

Description

Parameter values can be translated, e.g., to base 10 as implemented in trans_10pow. trans_10pow_round implements the transformation x -> round(2^x).

Usage

trans_10pow_round(x)

Value

round(10^x)

Arguments

x

input

Examples

Run this code
f2 <- function(x){2^x}
fn <- c("identity", "exp", "f2")
xNat <- diag(3)
SPOT::transformX(xNat, fn)

Run the code above in your browser using DataLab