exp_byname: Exponential of matrix elements

View source: R/Unary.R

exp_bynameR Documentation

Exponential of matrix elements

Description

Gives the exponential of all elements of a matrix or list of matrices

Usage

exp_byname(a)

Arguments

a

a matrix of list of matrices

Value

M with each element replaced by its exponential

Examples

exp_byname(1)
m <- matrix(c(log(10),log(1),
              log(1),log(100)), 
              byrow = TRUE, nrow = 2, ncol = 2,
              dimnames = list(paste0("i", 1:2), paste0("c", 1:2))) %>%
  setrowtype("Industry") %>% setcoltype("Commodity")
m
exp_byname(m)

MatthewHeun/byname documentation built on Feb. 17, 2024, 4:51 p.m.