dimMerge: Dim Merge

Description Usage Arguments Details Author(s) See Also Examples

Description

Dimension Merge

Usage

1
dimMerge(data, dim, dim1, dim2)

Arguments

data

a dataframe with "value" dimension and at lease one of "var" or "ind".

dim

a character string specifying "var" or "ind".

dim1

a character string specifying the first dimension member (x).

dim2

a character string specifying the second dimension member (y).

Details

Self-join data frame on two members of same dimension.

Author(s)

OECD STAN

See Also

mergeCalc

Examples

1
2
3
x <- data.frame("ind" = c(rep('D01T03', 2), rep('D05T09', 2)), "var" = rep(c('PROD', 'VALU'), 2), "value" = c(1:4))
x <- dimMerge(data=x, dim="var", dim1="PROD", dim2="VALU")
x <- dimMerge(data=x, dim="ind", dim1="D01T03", dim2="D05T09")

bowerth/stan documentation built on May 13, 2019, 12:38 a.m.