Learn R Programming

matsbyname (version 0.6.11)

exp_byname: Exponential of matrix elements

Description

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

Usage

exp_byname(a)

Value

M with each element replaced by its exponential

Arguments

a

a matrix of list of matrices

Examples

Run this code
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)

Run the code above in your browser using DataLab