where

R package where, providing vectorised substitution and evaluation

https://github.com/kiwimateo/where

Science Score: 13.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
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (4.6%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

R package where, providing vectorised substitution and evaluation

Basic Info
  • Host: GitHub
  • Owner: KiwiMateo
  • License: other
  • Language: R
  • Default Branch: main
  • Size: 22.5 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Created over 1 year ago · Last pushed over 1 year ago
Metadata Files
Readme License

readme.md

The where package

The where package has one main function where::do which provides a clean syntax for vectorising the use of NSE, for example in ggplot2, dplyr, or data.table. There are also two (infix) wrappers %where% and %for% that provide arguably cleaner syntax.

A simple, if contrived, example:

```r library(do) library(dplyr)

subgroups = .(all = TRUE, longsepal = Sepal.Length > 6, longpetal = Petal.Length > 5.5)

(iris %>% filter(subgroup) %>% summarise(across(Sepal.Length:Petal.Width, summary), .by = Species)) %where% list(subgroup = subgroups, summary = .(mean, sum, prod)) ```

Installation

Can be installed with

r remotes::install_github("KiwiMateo/where")

Owner

  • Login: KiwiMateo
  • Kind: user

GitHub Events

Total
  • Release event: 1
  • Watch event: 1
  • Push event: 5
  • Public event: 1
  • Create event: 2
Last Year
  • Release event: 1
  • Watch event: 1
  • Push event: 5
  • Public event: 1
  • Create event: 2

Packages

  • Total packages: 1
  • Total downloads:
    • cran 474 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: where

Vectorised Substitution and Evaluation

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 474 Last month
Rankings
Dependent packages count: 27.8%
Dependent repos count: 34.2%
Average: 49.7%
Downloads: 87.0%
Maintainers (1)
Last synced: 11 months ago

Dependencies

DESCRIPTION cran
  • data.table * suggests
  • dplyr * suggests
  • ggplot2 * suggests
  • knitr * suggests
  • rmarkdown * suggests
  • testthat >= 3.0.0 suggests