Extracts column type of a
.
coltype(a)
a | the object from which you want to extract column types |
---|
the column type of a
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)#> [1] "Industries"#> [[1]] #> [1] "Industries" #> #> [[2]] #> [1] "Industries" #>