PLS2way: Two-way table from PLSrounding output

Description Usage Arguments Details Value Examples

View source: R/PLS2way.R

Description

Two-way table from PLSrounding output

Usage

1
PLS2way(obj, variable = c("rounded", "original", "difference", "code"))

Arguments

obj

Output object from PLSrounding

variable

One of "rounded" (default), "original", "difference" or "code".

Details

When parameter "variable" is "code", output is coded as "#" (publish), "." (inner) and "&" (both).

Value

A data frame

Examples

1
2
3
4
5
6
7
8
9
# Making tables from PLSrounding examples 
z <- SmallCountData("e6")
a <- PLSrounding(z, "freq", formula = ~eu * year + geo)
PLS2way(a, "original")
PLS2way(a, "difference")
PLS2way(a, "code")
PLS2way(PLSrounding(z, "freq", formula = ~eu * year + geo * year), "code")
eHrc2 <- list(geo = c("EU", "@Portugal", "@Spain", "Iceland"), year = c("2018", "2019"))
PLS2way(PLSrounding(z, "freq", hierarchies = eHrc2))

SmallCountRounding documentation built on Oct. 30, 2019, 11:23 a.m.