Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/statisticsnorway/ssb-ssbtools
Statistics Norway's Miscellaneous Tools
https://github.com/statisticsnorway/ssb-ssbtools
cran r r-package statistics
Last synced: 5 days ago
JSON representation
Statistics Norway's Miscellaneous Tools
- Host: GitHub
- URL: https://github.com/statisticsnorway/ssb-ssbtools
- Owner: statisticsnorway
- License: other
- Created: 2018-06-12T13:21:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T19:26:29.000Z (16 days ago)
- Last Synced: 2024-10-25T05:18:19.757Z (12 days ago)
- Topics: cran, r, r-package, statistics
- Language: R
- Homepage:
- Size: 710 KB
- Stars: 8
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# R package SSBtools
Tools used by other packages from Statistics Norway
Official version on CRAN: [https://cran.r-project.org/package=SSBtools](https://cran.r-project.org/package=SSBtools)
```r
install.packages("SSBtools") # Install from CRAN
library(SSBtools) # Load SSBtools
?HierarchyCompute # Help documentation of function HierarchyCompute# Alternatively install from GitHub if you want to test the newest changes
devtools::install_github("statisticsnorway/SSBtools")
```### Some of the functions
Function | |
| ---------------------------- | -------------------------------------------------------------- |
| AddLeadingZeros | Add leading zeros to numbers while preserving other text |
| 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 |
| DimList2Hrc/Hrc2DimList | Conversion between hierarchy coding in sdcTable and TauArgus |
| GaussIndependent/GaussRank | Linearly independent rows and columns by Gaussian elimination |
| GaussSuppression | Secondary suppression by Gaussian elimination |
| FactorLevCorr | Factor level correlation |
| FindDimLists | Finding dimList |
| FormulaSums/Formula2ModelMatrix | Sums (aggregates) and/or sparse model matrix with possible cross table |
| HierarchicalGroups | Finding hierarchical variable groups |
| HierarchicalWildcardGlobbing | Find variable combinations by advanced wildcard/globbing specifications. |
| Hierarchies2ModelMatrix | Model matrix representing crossed hierarchies
| HierarchiesAndFormula2ModelMatrix | Model matrix representing crossed hierarchies according to a formula
| HierarchyCompute | Hierarchical Computations |
| Match | Matching rows in data frames |
| matlabColon | Simulate Matlab's ':' |
| Mipf | Iterative proportional fitting from matrix input |
| ModelMatrix | Model matrix from hierarchies and/or a formula (common interface) |
| RbindAll | Combining several data frames when the columns don't match |
| Reduce0exact | Reducing a non-negative regression problem |
| 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 |
| aggregate_multiple_fun | Wrapper to aggregate |
| dummy_aggregate | aggregate_multiple_fun using a dummy matrix |
| model_aggregate | Hierarchical aggregation via model specification |
| quantile_weighted | Weighted quantiles |