Package: rollupTree 0.1.0
rollupTree: Perform Recursive Computations
Mass rollup for a Bill of Materials is an example of a class of computations in which elements are arranged in a tree structure and some property of each element is a computed function of the corresponding values of its child elements. Leaf elements, i.e., those with no children, have values assigned. In many cases, the combining function is simple arithmetic sum; in other cases (e.g., mass properties), the combiner may involve other information such as the geometric relationship between parent and child, or statistical relations such as root-sum-of-squares (RSS). This package implements a general function for such problems. It is adapted to specific recursive computations by functional programming techniques; the caller passes a function as the update parameter to rollup() (or, at a lower level, passes functions as the get, set, combine, and override parameters to update_prop()) at runtime to specify the desired operations. The implementation relies on graph-theoretic algorithms from the 'igraph' package of Csárdi, et al. (2006 <doi:10.5281/zenodo.7682609>).
Authors:
rollupTree_0.1.0.tar.gz
rollupTree_0.1.0.tar.gz(r-4.5-noble)rollupTree_0.1.0.tar.gz(r-4.4-noble)
rollupTree_0.1.0.tgz(r-4.4-emscripten)rollupTree_0.1.0.tgz(r-4.3-emscripten)
rollupTree.pdf |rollupTree.html✨
rollupTree/json (API)
NEWS
# Install 'rollupTree' in R: |
install.packages('rollupTree', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/jsjuni/rolluptree/issues
Pkgdown site:https://jsjuni.github.io
- wbs_table - Example Work Breakdown Structure Data
- wbs_table_rollup - Example Work Breakdown Structure Data After Rollup
- wbs_tree - Example Work Breakdown Structure Data
Last updated 7 hours agofrom:d534c526f5. Checks:2 OK. Indexed: yes.
Target | Result | Latest binary |
---|---|---|
Doc / Vignettes | OK | Jan 20 2025 |
R-4.5-linux | OK | Jan 20 2025 |
Exports:default_validate_treedf_get_by_iddf_get_by_keydf_get_idsdf_get_keysdf_set_by_iddf_set_by_keyrollupupdate_df_prop_by_idupdate_df_prop_by_keyupdate_propupdate_rollupvalidate_df_by_idvalidate_df_by_keyvalidate_ds
Dependencies:clicpp11glueigraphlatticelifecyclemagrittrMatrixpkgconfigrlangvctrs
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Validate a tree for use with 'rollup()' | default_validate_tree |
Get property by key "id" from data frame | df_get_by_id |
Get property by key from data frame | df_get_by_key |
Get ids from a data frame | df_get_ids |
Get keys from a data frame | df_get_keys |
Set property by key "id" in data frame | df_set_by_id |
Set property by key in data frame | df_set_by_key |
Perform recursive computation | rollup |
Update a property in a dataframe with key "id" | update_df_prop_by_id |
Update a property in a dataframe | update_df_prop_by_key |
Update a data set with recursively-defined properties | update_prop |
Update a rollup from a single leaf vertex | update_rollup |
Validate a dataframe with key "id" for 'rollup()' | validate_df_by_id |
Validate a dataframe For rollup() | validate_df_by_key |
Validates a data set for use with 'rollup()' | validate_ds |
Example Work Breakdown Structure Data (Leaf Elements Only) | wbs_table |
Example Work Breakdown Structure Data After Rollup | wbs_table_rollup |
Example Work Breakdown Structure Data | wbs_tree |