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)), 
  nrow = 2, dimnames = list(paste0("i", 1:2), paste0("c", 1:2))) %>%
  setrowtype("Industry") %>% setcoltype("Commodity")
exp_byname(m)

matsbyname documentation built on April 2, 2022, 1:06 a.m.