Man pages for SSBtools
Algorithms and Tools for Tabular Statistics and Hierarchical Computations

AddLeadingZerosAdd leading zeros to numbers while preserving other text
aggregate_by_pkgAggregate by base R or data.table
aggregate_multiple_funWrapper to 'aggregate'
any_duplicated_rowsFast alternative to 'anyDuplicated()'
As_TsparseMatrixTransform to TsparseMatrix/dgTMatrix
AutoHierarchiesEnsure standardized coding of hierarchies
AutoSplitCreating variables by splitting the elements of a character...
CbindIdMatchCombine several data frames by using id variables to match...
CharacterDataFrameCharacterDataFrame
CheckInputChecking function inputs
combine_formulasCombine formulas
CrossCodeFramesCross codes in data frames
crossMergecrossMerge
data_diff_groupsAdd diff_groups results as columns in a data frame
DataDummyHierarchyCreate a (signed) dummy matrix for hierarcical mapping of...
DataFrameToMatrixDataFrameToMatrix
diff_groupsDifference and Sum Groups
DimList2HierarchyDimList2Hierarchy
DimList2HrcDimList2Hrc/Hrc2DimList
dummy_aggregate'aggregate_multiple_fun' using a dummy matrix
DummyApplyApply a function to subsets defined by a dummy matrix
DummyDuplicatedDuplicated columns in dummy matrix
DummyHierarchyConverting hierarchy specifications to a (signed) dummy...
Extend0Add zero frequency rows
Extend0fromModelMatrixInputA specialized version of Extend0()
Extend0rnd1varGroups-attribute to Extend0, Example functions
FactorLevCorrFactor level correlation
filter_by_variableFilter a List of Items or Retrieve Names by a Variable
FindCommonCellsFinding commonCells
FindDimListsFinding dimList
FindDisclosiveCellsFind directly disclosive cells
FindHierarchiesFinding hierarchies automatically from data
FindTableGroupFinding table(s) of hierarchical variable groups
fix_fun_amfFix 'fun' parameter to 'aggregate_multiple_fun'
fix_vars_amfFix 'vars' parameter to 'aggregate_multiple_fun'
ForceCharacterDataFrameForceCharacterDataFrame
ForceFactorDataFrameForceFactorDataFrame
formula_from_varsGenerate model formula by specifying which variables have...
FormulaSelectionLimit matrix or data frame to selected model terms
FormulaSumsSums (aggregates) and/or sparse model matrix with possible...
formula_term_labelsRetrieve term labels from a formula
formula_utilsFunctions for formula manipulation
GaussIndependentLinearly independent rows and columns by Gaussian elimination
GaussIterationFunctionAn 'iFunction' argument to 'GaussSuppression'
GaussSuppressionSecondary suppression by Gaussian elimination
get_colnamesGet column names from a data.frame, tibble, or data.table
HierarchicalGroupsFinding hierarchical variable groups
HierarchicalGroups2Finding hierarchical variable groups
HierarchicalGroups3Finding hierarchical variable groups
HierarchicalWildcardGlobbingFind variable combinations by advanced wildcard/globbing...
Hierarchies2ModelMatrixModel matrix representing crossed hierarchies
HierarchiesAndFormula2ModelMatrixModel matrix representing crossed hierarchies according to a...
hierarchies_as_varsHierarchies coded as variables
Hierarchy2FormulaHierarchy2Formula
HierarchyComputeHierarchical Computations
HierarchyCompute2Extended Hierarchical Computations
HierarchyComputeDummyHierarchyComputeDummy
HierarchyFixChange the hierarchy table to follow the standard
inc_defaultDefault progress indicator function
LSfitNonNegNon-negative regression fits with a sparse overparameterized...
MakeFreqMicrodata frequency data conversion
MakeHierFormulaMake model formula from data taking into account hierarchical...
map_hierarchies_to_dataAdd variables to dataset based on hierarchies
MatchMatching rows in data frames
matlabColonSimulate Matlab's ':'
Matrix2listConvert matrix to sparse list
MatrixPasteCombining columns of a matrix
MatrixToDataFrameMatrixToDataFrame
max_contributionFind Major Contributions to Aggregates and Count Contributors
MipfIterative proportional fitting from matrix input
model_aggregateHierarchical aggregation via model specification
ModelMatrixModel matrix from hierarchies and/or a formula
Model_MatrixOverparameterized model matrix
NumberAdding leading zeros
NumSingletonDecoding of 'singletonMethod'
output_term_labelsExtract vector of term labels from a data.frame
quantile_weightedWeighted quantiles
RbindAllCombining several data frames when the columns don't match
Reduce0exactReducing a non-negative regression problem
RoundWholeRound values that are close two whole numbers
RowGroupsCreate numbering according to unique rows
SortRowsSorting rows of a matrix or data frame
sosialFiktivFictitious datasets returned by SSBtoolsData()
SSBtoolsDataFunction that returns a dataset
StackStack columns from a data frame and include variables.
substitute_formula_varsReplace variables in formula with sum of other variables
table_all_integersTable all integers from 1 to n
tables_by_formulasTabular Statistics Based on Formulas
total_collapseCollapse variables to single representation
UniqueSeqSequence within unique values
unmatrixTransform data frame with embedded matrices
UnstackUnstack a column from a data frame and include additional...
vars_to_hierarchiesTransform hierarchies coded as Variables to "to-from" format
WildcardGlobbingRow selection by wildcard/globbing
WildcardGlobbingVectorSelection of elements by wildcard/globbing
zero_colCheck for empty matrix columns (or rows)
SSBtools documentation built on Nov. 5, 2025, 6:51 p.m.