R: Algorithms and Tools for Tabular Statistics and Hierarchical Computations

# Algorithms and Tools for Tabular Statistics and Hierarchical Computations

## Documentation for package ‘SSBtools’ version 1.8.6

- DESCRIPTION file
- Package NEWS

## Help Pages

AddLeadingZeros | Add leading zeros to numbers while preserving other text
aggregate_by_pkg | Aggregate by base R or data.table
aggregate_multiple_fun | Wrapper to 'aggregate'
any_duplicated_rows | Fast alternative to 'anyDuplicated()'
As_TsparseMatrix | Transform to TsparseMatrix/dgTMatrix
AutoHierarchies | Ensure standardized coding of hierarchies
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
CheckInput | Checking function inputs
check_input | Checking function inputs
convert_integer64 | Convert 'integer64' data to base R numeric, integer, or character types
DataDummyHierarchies | Create a (signed) dummy matrix for hierarcical mapping of codes in data
DataDummyHierarchy | Create a (signed) dummy matrix for hierarcical mapping of codes in data
data_diff_groups | Add diff_groups results as columns in a data frame
diff_groups | Difference and Sum Groups
DimList2Hierarchy | DimList2Hierarchy
DimList2Hrc | DimList2Hrc/Hrc2DimList
DummyApply | Apply a function to subsets defined by a dummy matrix
DummyDuplicated | Duplicated columns in dummy matrix
DummyHierarchies | Converting hierarchy specifications to a (signed) dummy matrix
DummyHierarchy | Converting hierarchy specifications to a (signed) dummy matrix
dummy_aggregate | 'aggregate_multiple_fun' using a dummy matrix
Extend0 | Add zero frequency rows
Extend0rnd1 | varGroups-attribute to Extend0, Example functions
Extend0rnd1b | varGroups-attribute to Extend0, Example functions
Extend0rnd2 | varGroups-attribute to Extend0, Example functions
FactorLevCorr | Factor level correlation
filter_by_variable | Filter a List of Items or Retrieve Names by a Variable
FindCommonCells | Finding commonCells
FindDimLists | Finding dimList
FindDisclosiveCells | Find directly disclosive cells
FindHierarchies | Finding hierarchies automatically from data
FindTableGroup | Finding table(s) of hierarchical variable groups
Formula2Hierarchy | Hierarchy2Formula
Formula2ModelMatrix | Sums (aggregates) and/or sparse model matrix with possible cross table
FormulaSelection | Limit matrix or data frame to selected model terms
FormulaSelection.default | Limit matrix or data frame to selected model terms
FormulaSums | Sums (aggregates) and/or sparse model matrix with possible cross table
formula_selection | Limit matrix or data frame to selected model terms
formula_utils | Functions for formula manipulation
GaussIndependent | Linearly independent rows and columns by Gaussian elimination
GaussIterationFunction | An 'iFunction' argument to 'GaussSuppression'
GaussRank | Linearly independent rows and columns by Gaussian elimination
GaussSuppression | Secondary suppression by Gaussian elimination
get_colnames | Get column names from a data.frame, tibble, or data.table
HierarchicalGroups | Finding hierarchical variable groups
HierarchicalWildcardGlobbing | Find variable combinations by advanced wildcard/globbing specifications.
Hierarchies2Formulas | Hierarchy2Formula
Hierarchies2ModelMatrix | Model matrix representing crossed hierarchies
HierarchiesAndFormula2ModelMatrix | Model matrix representing crossed hierarchies according to a formula
hierarchies_as_vars | Hierarchies coded as variables
Hierarchy2Formula | Hierarchy2Formula
HierarchyCompute | Hierarchical Computations
HierarchyCompute2 | Extended Hierarchical Computations
Hrc2DimList | DimList2Hrc/Hrc2DimList
LSfitNonNeg | Non-negative regression fits with a sparse overparameterized model matrix
MakeHierFormula | Make model formula from data taking into account hierarchical variables
map_hierarchies_to_data | Add variables to dataset based on hierarchies
Match | Matching rows in data frames
matlabColon | Simulate Matlab's ':'
Matrix2list | Convert matrix to sparse list
Matrix2listInt | Convert matrix to sparse list
max_contribution | Find Major Contributions to Aggregates and Count Contributors
Mipf | Iterative proportional fitting from matrix input
ModelMatrix | Model matrix from hierarchies and/or a formula
model_aggregate | Hierarchical aggregation via model specification
NamesFromModelMatrixInput | Model matrix from hierarchies and/or a formula
names_by_variable | Filter a List of Items or Retrieve Names by a Variable
Number | Adding leading zeros
NumSingleton | Decoding of 'singletonMethod'
n_contributors | Find Major Contributions to Aggregates and Count Contributors
output_term_labels | Extract vector of term labels from a data.frame
quantile_weighted | Weighted quantiles
RbindAll | Combining several data frames when the columns don't match
Reduce0exact | Reducing a non-negative regression problem
RoundWhole | Round values that are close two whole numbers
RowGroups | Create numbering according to unique rows
SeqInc | Simulate Matlab's ':'
single_col | Check for empty matrix columns (or rows)
SortRows | Sorting rows of a matrix or data frame
SSBtoolsData | Function that returns a dataset
Stack | Stack columns from a data frame and include variables.
tables_by_formulas | Tabular Statistics Based on Formulas
table_all_integers | Table all integers from 1 to n
total_collapse | Collapse variables to single representation
UniqueSeq | Sequence within unique values
Unstack | Unstack a column from a data frame and include additional variables.
vars_to_hierarchies | Transform hierarchies coded as Variables to "to-from" format
WildcardGlobbing | Row selection by wildcard/globbing
WildcardGlobbingVector | Selection of elements by wildcard/globbing
zero_col | Check for empty matrix columns (or rows)