coltype: Column type

Description Usage Arguments Value Examples

View source: R/Utilities.R

Description

Extracts column type of a.

Usage

1

Arguments

a

the object from which you want to extract column types

Value

the column type of a

Examples

1
2
3
4
5
6
7
commoditynames <- c("c1", "c2")
industrynames <- c("i1", "i2")
U <- matrix(1:4, ncol = 2, dimnames = list(commoditynames, industrynames)) %>%
  setrowtype(rowtype = "Commodities") %>% setcoltype("Industries")
coltype(U)
# This also works for lists
coltype(list(U,U))

matsbyname documentation built on Oct. 13, 2021, 1:06 a.m.