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
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (13.7%) to scientific vocabulary
Last synced: 11 months ago
·
JSON representation
Repository
Forest/Tree Data Frames
Basic Info
- Host: GitHub
- Owner: UchidaMizuki
- License: other
- Language: R
- Default Branch: main
- Homepage: https://uchidamizuki.github.io/timbr/
- Size: 1.39 MB
Statistics
- Stars: 11
- Watchers: 1
- Forks: 0
- Open Issues: 3
- Releases: 4
Created over 4 years ago
· Last pushed over 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%"
)
```
# timbr
[](https://CRAN.R-project.org/package=timbr)
[](https://lifecycle.r-lib.org/articles/stages.html#experimental)
[](https://app.codecov.io/gh/UchidaMizuki/timbr?branch=main)
[](https://github.com/UchidaMizuki/timbr/actions/workflows/R-CMD-check.yaml)
timbr provides data frames for forest or tree data structures.
You can create forest data structures from data frames and process them based on their hierarchies.
## Installation
You can install the development version of timbr from [GitHub](https://github.com/) with:
``` r
# the released version from CRAN:
install.packages("timbr")
# the development version from GitHub:
# install.packages("devtools")
devtools::install_github("UchidaMizuki/timbr")
```
## Main Functions
The main functions provided by timbr are as follows,
- `children()`
- `climb()`
- `leaves()`
- `traverse()`
- `rbind()`
## tidyverse methods
timbr provides some tidyverse methods as follows,
- `mutate()`
- `summarise()`
- `select()` and `relocate()`
- `rows_update()` and `rows_patch()`
## Examples
```{r,warning=FALSE,message=FALSE}
library(timbr)
library(dplyr)
```
```{r}
fr <- tidyr::expand_grid(key1 = letters[1:2],
key2 = letters[1:2],
key3 = letters[1:2]) |>
mutate(value = row_number()) |>
forest_by(key1, key2, key3)
fr_sum <- fr |>
summarise(value = sum(value)) |>
summarise(value = sum(value))
fr
fr_sum
children(fr_sum)
fr_sum |>
climb(key3)
```
```{r}
fr1 <- tidyr::expand_grid(key1 = letters[1:2],
key2_1 = letters[1:2],
key3_1 = letters[1:2]) |>
mutate(value = row_number()) |>
forest_by(key1, key2_1, key3_1) |>
summarise(value = sum(value))
fr2 <- tidyr::expand_grid(key1 = letters[1:2],
key2_2 = letters[1:2],
key3_2 = letters[1:2]) |>
mutate(value = row_number()) |>
forest_by(key1, key2_2, key3_2) |>
summarise(value = sum(value))
fr <- rbind(fr1, fr2)
fr_sum <- fr |>
summarise(value = sum(value))
fr
fr_sum
traverse(fr_sum,
function(x, children) {
x$value <- prod(children$value)
x
})
```
Owner
- Name: Uchida Mizuki
- Login: UchidaMizuki
- Kind: user
- Location: Japan
- Company: Yachiyo Engineering Co., Ltd.
- Website: uchidamizuki.quarto.pub
- Repositories: 8
- Profile: https://github.com/UchidaMizuki
I am a classical music lover.
GitHub Events
Total
- Watch event: 3
- Push event: 1
Last Year
- Watch event: 3
- Push event: 1
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| UchidaMizuki | u****i@v****t | 91 |
Committer Domains (Top 20 + Academic)
vivaldi.net: 1
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 13
- Total pull requests: 9
- Average time to close issues: 11 days
- Average time to close pull requests: 5 minutes
- Total issue authors: 2
- Total pull request authors: 1
- Average comments per issue: 0.15
- Average comments per pull request: 0.0
- Merged pull requests: 9
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 3
- Pull requests: 2
- Average time to close issues: 2 days
- Average time to close pull requests: 9 minutes
- Issue authors: 1
- Pull request authors: 1
- Average comments per issue: 0.0
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- UchidaMizuki (11)
- hadley (1)
Pull Request Authors
- UchidaMizuki (11)
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cran 223 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 5
- Total maintainers: 1
cran.r-project.org: timbr
Forest/Tree Data Frames
- Homepage: https://github.com/UchidaMizuki/timbr
- Documentation: http://cran.r-project.org/web/packages/timbr/timbr.pdf
- License: MIT + file LICENSE
-
Latest release: 0.2.2
published about 3 years ago
Rankings
Stargazers count: 21.1%
Forks count: 28.8%
Dependent packages count: 29.8%
Average: 31.1%
Dependent repos count: 35.5%
Downloads: 40.5%
Maintainers (1)
Last synced:
11 months ago
Dependencies
DESCRIPTION
cran
- dplyr * imports
- memoise * imports
- pillar * imports
- purrr * imports
- rlang * imports
- tibble * imports
- tidygraph * imports
- tidyselect * imports
- vctrs * imports
- covr * suggests
- testthat >= 3.0.0 suggests
- tidyr * suggests
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/check-r-package v1 composite
- r-lib/actions/setup-r v1 composite
- r-lib/actions/setup-r-dependencies v1 composite
.github/workflows/pkgdown.yaml
actions
- actions/checkout v2 composite
- r-lib/actions/setup-pandoc v1 composite
- r-lib/actions/setup-r v1 composite
- r-lib/actions/setup-r-dependencies v1 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v4 composite
- actions/upload-artifact v4 composite
- codecov/codecov-action v4 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite