Statistics Norway's Miscellaneous Tools

Functions used by other packages from Statistics Norway are gathered. General data manipulation functions, and functions for hierarchical computations are included (Langsrud, 2020) . The hierarchy specification functions are useful within statistical disclosure control.

Tools used by other packages from Statistics Norway

AddLeadingZeros Add leading zeros to numbers while preserving other text
AutoSplit Creating variables by splitting the elements of a character vector without needing a split string
CbindIdMatch Combine several data frames by using id variables to match rows
DummyHierarchy Converting hierarchy specifications to a (signed) dummy matrix
FactorLevCorr Factor level correlation
FindCommonCells Finding commonCells
FindDimLists Finding dimList
FindTableGroup Finding table(s) of hierarchical variable groups
HierarchicalGroups Finding hierarchical variable groups
HierarchicalWildcardGlobbing Find variable combinations by advanced wildcard/globbing specifications.
HierarchyCompute Hierarchical Computations
HierarchyFix Change the hierarchy table to follow the standard
Match Matching rows in data frames
matlabColon Simulate Matlab's ':'
Number Adding leading zeros
RbindAll Combining several data frames when the columns don't match
RowGroups Create numbering according to unique rows
SSBtoolsData Function that returns a dataset
Stack Stack columns from a data frame and include variables.
Unstack Unstack a column from a data frame and include additional variables.
WildcardGlobbing Row selection by wildcard/globbing
WildcardGlobbingVector Selection of elements by wildcard/globbing


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


1.2.2 by Øyvind Langsrud, 4 months ago

Report a bug at

Browse source code at

Authors: Øyvind Langsrud [aut, cre] , Daniel Lupp [aut] , Bjørn-Helge Mevik [cph]

Documentation:   PDF Manual  

Apache License 2.0 | file LICENSE license

Imports stringr, methods, MASS

Depends on Matrix

Suggests testthat

Imported by GaussSuppression, RegSDC, multiblock.

Depended on by SmallCountRounding, easySdcTable.

See at CRAN