Learn R Programming

SPOTMisc (version 1.19.52)

trans_odd_round: odd transformation

Description

Generate odd numbers, i.e., x -> 2x-1 for x > 0. Return values are rounded using round.

Usage

trans_odd_round(x)

Value

x

Arguments

x

input

Examples

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

Run the code above in your browser using DataLab