rolluptree
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (14.7%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
Repository
Basic Info
- Host: GitHub
- Owner: jsjuni
- License: other
- Language: R
- Default Branch: main
- Homepage: https://jsjuni.github.io/rollupTree/
- Size: 1.51 MB
Statistics
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 4
Created over 1 year ago
· Last pushed about 1 year ago
Metadata Files
Readme
Changelog
License
README.Rmd
---
output: github_document
---
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# rollupTree
[](https://CRAN.R-project.org/package=rollupTree)
[](https://github.com/jsjuni/rollupTree/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/jsjuni/rollupTree)
rollupTree implements a general function for computations in which some property of a parent element is a combination of corresponding properties of its child elements. The mass of an assembly, for example, is the sum of the masses of its subassemblies, and the mass of each subassembly is the sum of masses of its parts, etc.
rollupTree can perform computations specified by arbitrarily-shaped (but well-formed) trees, arbitrarily-defined properties and property-combining operations. Defaults are provided to simplify common cases (atomic numerical properties combined by summing), but functional programming techniques allow the caller to pass arbitrary update methods as required.
Despite its name, rollupTree can operate on directed acyclic graphs that are not trees if instructed to apply less stringent validation rules to its input.
## Installation
```{r eval = FALSE}
install.packages("rollupTree")
```
You can install the development version of rollupTree from [GitHub](https://github.com/) with:
```{r eval = FALSE}
# install.packages("pak")
pak::pak("jsjuni/rollupTree")
```
## Example
Suppose we have this data frame representing a work breakdown structure:
```{r echo = FALSE}
library(rollupTree)
wbs_table$work <- NULL
```
```{r}
library(rollupTree)
wbs_table
```
and this tree with edges representing child-parent relations in the breakdown:
```{r}
igraph::E(wbs_tree)
```
We can sum the budget numbers as follows:
```{r}
rollup(
tree=wbs_tree,
ds=wbs_table,
update=function(d, t, s) update_df_prop_by_id(df=d, target=t, sources=s, prop="budget"),
validate_ds=function(t, d) validate_df_by_id(tree=t, df=d, prop="budget")
)
```
Owner
- Name: Steven Jenkins
- Login: jsjuni
- Kind: user
- Repositories: 1
- Profile: https://github.com/jsjuni
GitHub Events
Total
- Create event: 19
- Release event: 5
- Issues event: 17
- Watch event: 4
- Delete event: 13
- Issue comment event: 3
- Push event: 106
- Pull request event: 22
Last Year
- Create event: 19
- Release event: 5
- Issues event: 17
- Watch event: 4
- Delete event: 13
- Issue comment event: 3
- Push event: 106
- Pull request event: 22
Issues and Pull Requests
Last synced: 10 months ago
All Time
- Total issues: 10
- Total pull requests: 12
- Average time to close issues: 1 day
- Average time to close pull requests: 18 minutes
- Total issue authors: 1
- Total pull request authors: 1
- Average comments per issue: 0.3
- Average comments per pull request: 0.08
- Merged pull requests: 11
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 10
- Pull requests: 12
- Average time to close issues: 1 day
- Average time to close pull requests: 18 minutes
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.3
- Average comments per pull request: 0.08
- Merged pull requests: 11
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- jsjuni (10)
Pull Request Authors
- jsjuni (10)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 510 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 5
- Total maintainers: 1
cran.r-project.org: rollupTree
Perform Recursive Computations
- Homepage: https://jsjuni.github.io/rollupTree/
- Documentation: http://cran.r-project.org/web/packages/rollupTree/rollupTree.pdf
- License: MIT + file LICENSE
-
Latest release: 0.3.2
published about 1 year ago
Rankings
Dependent packages count: 27.4%
Dependent repos count: 33.8%
Average: 49.4%
Downloads: 86.9%
Maintainers (1)
Last synced:
10 months ago
Dependencies
DESCRIPTION
cran
- R >= 3.5 depends
- igraph >= 1.6.0 imports
- testthat >= 3.0.0 suggests