addUtoarray: Adds unemployment rate to an array

Description Usage Arguments Value Examples

View source: R/addUtoarray.R

Description

Adds unemployment rate to an array

Usage

1
addUtoarray(A, dime = "y", uenames = c(u = "0", e = "1", r = "r"))

Arguments

A

a_1 x ... x a_p

dime

an integer or a string indicating the dimention of the array that corresponds to the employed and unemployed

Value

uenames, a character string indicating the dimension names corresponding to employed,unemployed and rate( will be created)

Examples

1
2
3
A=array(1:(prod(2:5)),2:5);dimnames(A)[[2]]<-c("unemp","emp","nilf");names(dimnames(A))[2]<-"variable";addUtoarray(A,2,c("u"="unemp","e"="emp","r"="r"));addUtoarray(A,"variable",c("u"=1,"e"=2,"r"=4))
X=array(1:(prod(4:6)),4:6); "%.%"(W,X,j=2);
W%.%.%.%t(X);

DanielBonnery/pubBonneryChengLahiri2016 documentation built on May 6, 2019, 1:35 p.m.