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
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



[![CRAN status](https://www.r-pkg.org/badges/version/rollupTree)](https://CRAN.R-project.org/package=rollupTree)
[![R-CMD-check](https://github.com/jsjuni/rollupTree/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/jsjuni/rollupTree/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/jsjuni/rollupTree/graph/badge.svg)](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

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

  • Versions: 5
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 510 Last month
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